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
). what is meant by this
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css">
<meta charset="utf-8">
</head>
<body>
<header id="header">
<img src="https://static.vecteezy.com/system/resources/previews/002/724/520/original/tree-logo-free-vector.jpg" id="header-img" width="100">
<h1>Furniture</h1>
<nav id="nav-bar">
<ul>
<li><a href="#about-us" class="nav-link">About Us</a></li>
<li><a href="#videos" class="nav-link">Demo</a></li>
<li><a href="#photos" class="nav-link">Photo Gallery</a></li>
<li><a href="#contact-us" class="nav-link">Contact</a></li>
</ul>
</nav>
<video id="video" src=""></video>
<form id="form" action="https://www.freecodecamp.com/email-submit">
<label>email:<input id="email" placeholder="e-mail" type="email" name="email"></label>
<input id="submit" type="submit">
</form>
</header>
</body>
</html>
/* file: styles.css */
@media(max-width:100px){
#header{
text-align:center;
}
}
#header-img #header{
display:flex;
justify-content:space-evenly;
}
header {
position: fixed;
width: 100%;
top: 0;
left: 0;
background-color: white;
color: black;
font-family: 'Exo 2', sans-serif;
padding: 1em;
}
h1{
text-align:center;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0
Challenge Information:
Product Landing Page - Build a Product Landing Page