Certainly! Below is an example of a simple two-column HTML page with an upper menu bar for a table of contents (TOC) or article list. The layout is set up using HTML and CSS, and I've included some lorem ipsum text to show the layout.
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Two-Column Layout with Menu Bar</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<nav class="menu">
<ul>
<li><a href="#section1">Section 1</a></li>
<li><a href="#section2">Section 2</a></li>
<li><a href="#section3">Section 3</a></li>
</ul>
</nav>
</header>
<main>
<div class="container">
<aside class="toc">
<h2>Table of Contents</h2>
<ul>
<li><a href="#section1">Section 1</a></li>
<li><a href="#section2">Section 2</a></li>
<li><a href="#section3">Section 3</a></li>
</ul>
</aside>
<article class="content">
<section id="section1">
<h2>Section 1</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam.</p>
</section>
<section id="section2">
<h2>Section 2</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam.</p>
</section>
<section id="section3">
<h2>Section 3</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam.</p>
</section>
</article>
</div>
</main>
</body>
</html>
CSS:
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: white;
padding: 1rem;
}
.menu ul {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
}
.menu li {
margin: 0 15px;
}
.menu a {
color: white;
text-decoration: none;
font-weight: bold;
}
.container {
display: flex;
margin: 1rem;
}
.toc {
flex: 1;
padding: 1rem;
border-right: 1px solid #ddd;
}
.article {
flex: 3;
padding: 1rem;
}
.content section {
margin-bottom: 2rem;
}
.toc ul {
list-style-type: none;
padding: 0;
}
.toc li {
margin-bottom: 10px;
}
.toc a {
text-decoration: none;
color: #333;
font-weight: bold;
}
.toc a:hover {
text-decoration: underline;
}
h2 {
color: #333;
}
This will create a basic two-column layout with the table of contents on the left and the article content on the right. The upper menu bar provides links to different sections within the content. You can click on these menu items to navigate to the corresponding sections. The CSS styling is basic and can be enhanced further to match your design preferences.