Tell us what’s happening:
Describe your issue in detail here.
I’ve done every task so far but " Each .nav-link element should have an href attribute.
" each .nav-link has a href attribute from what I’m seeing.
Your code so far
<!-- file: index.html -->
<head>
<link rel="stylesheet" href="styles.css">
</head>
<header id='header'>
<img src='https://imgur.com/gallery/S20uAct' id='header-img'>
<nav id='nav-bar'>
<nav class='nav-link' href="#header"></nav>
<nav class='nav-link' href="#header"></nav>
<nav class='nav-link' href="#header"></nav>
</nav>
<video id='video' src='https://www.youtube.com/watch?v=nnJ_h2hRpoI'></video>
<form action='https://www.freecodecamp.com/email-submit' id='form'><input id='email' placeholder='s' type='email' name='email'><input>
<input id='submit' type='submit'><input>
</form>
</header>
/* file: styles.css */
@media (max-width: 900px) {
#header {
width: 20px;
display: flex;
position: fixed;
width: 100%;
top: 0;
left: 0;
}
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Challenge: Product Landing Page - Build a Product Landing Page
Link to the challenge: