Tell us what’s happening:
I got every line of codes correctly but this :
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
)“”…I would love to know what am not doing right pls!
Your code so far
<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href="styles.css">
<main>
<head>
<meta charset="UTF-80">
<header id="header">Product Landing page
<img id="header-img" src=""></img>
<nav id="nav-bar">
<ul>
<li><a href="#Chlorine" class="nav-link">Chlorine</a></li>
<li> <a href="#Rust" class="nav-link">Rust</a></li>
<li> <a href="#Power" class="nav-link">Powder</a></li>
<li> <a href="#Starch" class="nav-link">Starch</a></li>
</ul>
<style type="style/css">
@media screen and (max-width:500px){
display: flex;
}
}
@media screen and (max-width:400px){
}
display: flex;
</style>
</nav>
<meta content="viewport">
</header>
</head>
<body>
<video id="video" src=""></video>
<form id="form" action="https://www.freecodecamp.com/email-submit">
<input id="email" placeholder="email" type="email" name="email"><input>
<input id="submit" type="submit"></input>
</form>
</main>
</body>
</html>
/* file: styles.css */
@media screen and (max-width:500px)
{
nav{ display: flex;
}
}
@media screen and (max-width:400px){
nav-link{
display: flex;}
}
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Challenge: Product Landing Page - Build a Product Landing Page
Link to the challenge: