Basic HTML Layout With Navigation and Logo
Basic HTML Layout With Navigation and Logo
HTML Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Basic Layout with Navigation</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Header Section with Logo and Navigation -->
<header class="header">
<div class="logo">
<img src="logo.png" alt="Logo">
<h1>My Website</h1>
</div>
<nav class="navbar">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<!-- Main Content Section -->
<main class="main-content">
<h2>Welcome to My Website</h2>
<p>This is a simple layout with a header, logo, and navigation bar.</p>
</main>
<!-- Footer Section -->
<footer class="footer">
<p>© 2024 My Website</p>
</footer>
</body>
</html>
CSS Code: