Product Landing Page - Build a Product Landing Page

Tell us what’s happening:
Hello! I am struggling w/my last step: Each .nav-link element should have an href attribute.
Can someone please explain what I am doing wrong? Thank you!

Your code so far

<!-- file: index.html -->
<header id="header">
<img id="header-img" src="https://www.cerave.com">
  
<link rel="stylesheet" href="styles.css">

  <nav id="nav-bar">

    <nav class="nav-link" href="#nav-bar"></nav>
    <nav class="nav-link" href="#nav-bar"></nav>
    <nav class="nav-link" href="#nav-bar"></nav>

    </nav>

<video id="video" src=""></video>
  <form id="form" action="https://www.freecodecamp.com/email-submit">
    <input id="email" name="email" placeholder="Enter Email" type="email">
    </input>
    <input id="submit" type="submit"></input>
    </form>
    



  </header>
 
    
    
/* file: styles.css */
@media screen and (max-width: 600px) {
  .nav-link {
    display: flex;
  }
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15

Challenge: Product Landing Page - Build a Product Landing Page

Link to the challenge:

You don’t use the nav element to makes links. Do you remember which element you should use instead?

Apologies! I definitely see that now - will that be the link attribute?

Or for the href, using a?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.