Product Landing Page - Build a Product Landing Page

IT KEEPS SHOWING- 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 ).

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

<!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>  
    <div id="page-wrapper"> 
        <header id="header">
          <img id="header-img"
          src="https://www.logolynx.com/images/logolynx/90/90cdeb260df361a39d97540d9c75a814.png"
          alt="gen z logo"
          />
          <h1> Gen-Z</h1><br>
         
          <nav id="nav-bar">
            <ul>
              <li>
                <a class="nav-link" href="#home">Home</a>
              </li>
              <li>
                <a class="nav-link" href="#shop">Shop</a>
              </li>
              <li>
                <a class="nav-link" href="#sign-in">Sign-in</a>
              </li>
            </ul>
          </nav>
        </header>
      </div>
          <br>
          <br>
          <br>
          <br>
<h3>Home for all styles and shapes</h3>

        <section id="home">
          <iframe id="video"
          width="560" 
          height="315" 
          src="https://www.youtube.com/embed/YpPM8EYKbrc" 
          title="YouTube video player" 
          frameborder="0" 
          allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 
          allowfullscreen>
          </iframe>
        </section>

        <section id="shop">
          <div class="winter-wear">
            <img class="hoodies" src="https://i.pinimg.com/564x/c5/a1/f4/c5a1f42ca1b4f56d8004579c1a61d23f.jpg"
          alt="222 you're in the right place at the right time hoodie"
           />
           <a class="nav-link heading1" href="Hoodies">Hoodies</a>
            <img class="sweaters" src="https://i.pinimg.com/564x/f4/e8/cf/f4e8cf38c6a734ed9b0f147465c62b12.jpg"
          alt="Karma is only a bitch if you are hoodie"
           />
           <a class="nav-link heading1" href="Sweaters">Sweaters</a>
            <img class="sweatshirts"
src="https://i.pinimg.com/564x/98/14/4e/98144e0bb334b987a203fc6158d984a1.jpg"
          alt="Don't trip over what's behind you hoodie"
           />
           <a class="nav-link heading2" href="Sweatshirts">Sweatshirts</a>
           </div>
        </section>

        <section id="sign-in">
         <h2>Sign-In</h2>
         <form id="form" action="https://www.freecodecamp.com/email-submit" >
           <label for="first-name">Enter Your Name <br>
              <input id="first-name" name="first-name" type="text" placeholder="Name" required />
            </label><br>
            <label for="email" >Enter Your Email<br> <input id="email" name="email" type="email" placeholder="Enter your email address" required />
            </label><br>
            <label for="new-password">Create a New Password<br>
              <input id="new-password" name="new-password" type="password" pattern="[a-z0-5]{8,}" placeholder="Set password" required />
            </label><br><br>
            <label for="terms-and-conditions" name="terms-and-conditions">
              <input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
            </label><br>
        <input id="submit" class="btn" type="submit" value="Sign-in" />
        </form>
      </section>
      <footer>
          <ul>
            <li><a href="#">Privacy</a></li>
            <li><a href="#">Terms</a></li>
            <li><a href="#">Contact Us</a></li>
          </ul>
      </footer>   
      </div>
  </body>
</html>

Your browser information:

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

Challenge: Product Landing Page - Build a Product Landing Page

Link to the challenge:

You have added the closing ‘div’ tag below the closing ‘footer’ tag. Delete attribute ‘name’ from `label’ element.

still not working…

<!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>  
    <div id="page-wrapper"> 
        <header id="header">
          <img id="header-img"
          src="https://www.logolynx.com/images/logolynx/90/90cdeb260df361a39d97540d9c75a814.png"
          alt="gen z logo"
          />
          <h1> Gen-Z</h1><br>
         
          <nav id="nav-bar">
            <ul>
              <li>
                <a class="nav-link" href="#home">Home</a>
              </li>
              <li>
                <a class="nav-link" href="#shop">Shop</a>
              </li>
              <li>
                <a class="nav-link" href="#sign-in">Sign-in</a>
              </li>
            </ul>
          </nav>
        </header>
      </div>
          <br>
          <br>
          <br>
          <br>
<h3>Home for all styles and shapes</h3>

        <section id="home">
          <iframe id="video"
          width="560" 
          height="315" 
          src="https://www.youtube.com/embed/YpPM8EYKbrc" 
          title="YouTube video player" 
          frameborder="0" 
          allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 
          allowfullscreen>
          </iframe>
        </section>

        <section id="shop">
          <div class="winter-wear">
            <img class="hoodies" src="https://i.pinimg.com/564x/c5/a1/f4/c5a1f42ca1b4f56d8004579c1a61d23f.jpg"
          alt="222 you're in the right place at the right time hoodie"
           />
           <a class="nav-link heading1" href="Hoodies">Hoodies</a>
            <img class="sweaters" src="https://i.pinimg.com/564x/f4/e8/cf/f4e8cf38c6a734ed9b0f147465c62b12.jpg"
          alt="Karma is only a bitch if you are hoodie"
           />
           <a class="nav-link heading1" href="Sweaters">Sweaters</a>
            <img class="sweatshirts"
src="https://i.pinimg.com/564x/98/14/4e/98144e0bb334b987a203fc6158d984a1.jpg"
          alt="Don't trip over what's behind you hoodie"
           />
           <a class="nav-link heading2" href="Sweatshirts">Sweatshirts</a>
           </div>
        </section>

        <section id="sign-in">
         <h2>Sign-In</h2>
         <form id="form" action="https://www.freecodecamp.com/email-submit" >
           <label for="first-name">Enter Your Name <br>
              <input id="first-name" name="first-name" type="text" placeholder="Name" required />
            </label><br>
            <label for="email" >Enter Your Email<br> <input id="email" name="email" type="email" placeholder="Enter your email address" required />
            </label><br>
            <label for="new-password">Create a New Password<br>
              <input id="new-password" name="new-password" type="password" pattern="[a-z0-5]{8,}" placeholder="Set password" required />
            </label><br><br>
            <label for="terms-and-conditions">
              <input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
            </label><br>
        <input id="submit" class="btn" type="submit" value="Sign-in" />
        </form>
      </section>
      <footer>
          <ul>
            <li><a href="#">Privacy</a></li>
            <li><a href="#">Terms</a></li>
            <li><a href="#">Contact Us</a></li>
          </ul>
      </footer>   
  </body>
</html>


[details="Summary"]
This text will be hidden
[/details]

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

1 Like

You have nav-links outside the nav area?
These would confuse the test.

Thank so much! i got it :slight_smile:

1 Like