Tell us what’s happening:
- Each .nav-link element should link to a corresponding element on the landing page (has an href with a value of another element’s id. e.g. #footer).
Your code so far
Product Landing Page header footer menu<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<header id="header">
<meta charset="UTF-8">
<title>Product Landing Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<img id="header-img" src=" https://product-landing-page.freecodecamp.rocks" alt="header">
</img>
<nav id="nav-bar">
<a class="nav-link" href="#header">header</a>
<a class="nav-link" href="#footer">footer</a>
<a class="nav-link" href="#menu">menu</a>
</nav>
<iframe id="video" src=""></iframe>
<form id="form" action="https://www.freecodecamp.com/email-submit">
<input id="email" placeholder="text" type="email" name="email"></input>
<input id="submit" type="submit"></input>
</form>
</header>
<body>
</body>
</html>
/* file: styles.css */
body {
font-family: Roboto, sans-serif;
background-color: black;
color: white;
}
#nav-bar {
background-color: #cd2a51;
padding-right: 30px;
}
.navbar a {
color: #fff;
width: 100px;
margin-right: 5px;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0
Challenge Information:
Product Landing Page - Build a Product Landing Page