stackoverflow/javascripttest/index.html

32 lines
882 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactive Navbar</title>
<link rel="stylesheet" href="styles.css">
<script src="script.js" defer></script>
</head>
<body>
<div class="navbar">
<div class="navbar-toggle" onclick="toggleNavbar()">
<span></span>
<span></span>
<span></span>
</div>
<ul class="navbar-links" id="navbarLinks">
<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>
</div>
<div class="content">
<h1>Welcome to My Website</h1>
<p>This is a simple example of an interactive slide-down navbar using HTML, CSS, and JavaScript.</p>
</div>
</body>
</html>