Product Landing Page - Build a Product Landing Page

Getting an error on the step: " You should have a nav element with an id of `nav-bar" Not sure what I’m doing wrong there

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<hmtl>
  <head>
    <link rel="stylesheet" href="styles.css">
    </head>
  <body>
    <div  id="page-wrapper">
     <header id="header">
       <div class="logo">
         <img id="header-img" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/product-landing-page-logo.png" alt="original trombones logo">
        </div>
      <nav class="nav-bar">
        </nav>
       </header>
    </body>
  </html>
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Safari/537.36 OPR/90.0.4480.100

Challenge: Product Landing Page - Build a Product Landing Page

Link to the challenge:

your “nav element” :point_up_2:t4: needs an id (that’s an attribute)
with a value of ‘nav-bar’

1 Like

you’re absolutely right

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