Tell us what’s happening:
Describe your issue in detail here.
Your code so far
I couldn’t figure this out. “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
)”
<!-- file: index.html -->
<html>
<head>
<meta charset='UFC-8'>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Product Landing Page</title>
</head>
<body>
<header id="header">
<img id="header-img" src="https://www.freecodecamp.com/email-submit"></img>
<nav id="nav-bar">
<a href="#features" class="nav-link" id="#features">Features</a>
<a href="#how-it-works" class="nav-link" id="#how-it-works"> How it works</a>
<a href="#pricing" class="nav-link" id="#pricing" > Pricing</a>
<section id="#features">
</section>
<section id="#how-it-works"></section> <footer id="#pricing"></footer>
</nav>
<video id="video" src="" ></video>
<form id="form" action="https://www.freecodecamp.com/email-submit">
<input id="email" placeholder="Enter your email" type="email" name="email"></input>
<input id="submit" type="submit"><a href="https://www.freecodecamp.com/email-submit"></a></input>
</form>
</header>
</body>
</html>
/* file: styles.css */
@media (max-width: 650px) {
body {
background-color: purple;
}
}
navbar{
position: top;
}
header {
position: fixed;
width: 100%;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Challenge: Product Landing Page - Build a Product Landing Page
Link to the challenge: