Tell us what’s happening:
I really dont understand what Im doing wrong here, the instruccions dont verify that I have the href atributes un my nav-bar, but I clearly do, but im not sure if they are place correctly, and my second problem is that, Im not sure if my nav-bar is on top of the viewport, i really would love some help here, Im absolutely stuck :C
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Product Landing Page</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header id="header">
<div>
<img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/product-landing-page-logo.png" id="header-img" />
</div>
<nav id="nav-bar">
<ul>
<li href="#email" class="nav-link" href="#email"><a href="#email">email</a></li>
<li href="#name" class="nav-link" href="#name"><a href="#name">name</a></li>
<li class="nav-link" href="#phone-number"><a href="#phone-number">phone number</a></li>
</ul>
</nav>
</header>
<form id="form" action="https://www.freecodecamp.com/email-submit">
<video id="video" src="https://www.youtube.com/watch?v=raWVb5yqKpk&list=PLRNveuOjkKpZ0QWe1QoQ_w67G4ijxvHOT&index=62"></video>
<div>
<label for="email">Email: </label>
<input id="email" type="email" name="email" placeholder="here your email"></input>
</div>
<div>
<label for="name">Email: </label>
<input id="name" type="text" name="name" placeholder="here your name"></input>
</div>
<div>
<label for="phone-number">Email: </label>
<input id="phone-number" type="number" name="phone-number" placeholder="phone number"></input>
</div>
<input id="submit" type="submit" name="submit"> </input>
</form>
</body>
</html>
/* file: styles.css */
@media (prefers-reduced-motion: no-preference) {
* {
scroll-behavior: smooth;
}
}
nav{
display:flex;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 OPR/97.0.0.0
Challenge: Product Landing Page - Build a Product Landing Page
Link to the challenge: