First html one page template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MCQ GK Blog</title>
<style>
/* CSS styles for the layout */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: #fff;
padding: 10px 0;
text-align: center;
}
nav {
background-color: #444;
text-align: center;
padding: 10px 0;
}
nav a {
color: #fff;
text-decoration: none;
margin: 0 10px;
}
nav a:hover {
text-decoration: underline;
}
.container {
display: flex;
justify-content: space-between;
margin: 20px;
}
.main-content {
flex: 70%;
margin-right: 20px;
}
.sidebar {
flex: 30%;
}
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 10px 0;
position: fixed;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<header>
<h1>MCQ GK Blog</h1>
</header>
<nav>
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Categories</a>
</nav>
<div class="container">
<div class="main-content">
<h2>Featured MCQs</h2>
<!-- Insert Featured MCQs here -->
<h2>Category Sections</h2>
<!-- Insert Category Sections here -->
</div>
<div class="sidebar">
<h2>About</h2>
<p>Welcome to MCQ GK Blog! We provide multiple-choice questions to test your general knowledge.</p>
<h2>Connect with Us</h2>
<!-- Insert Social Media Links here -->
<h2>Popular MCQs</h2>
<!-- Insert Popular MCQs here -->
</div>
</div>
<footer>
<p>Contact us: example@email.com | © 2024 MCQ GK Blog</p>
</footer>
</body>
</html>
Comments
Post a Comment