Product Landing Page - Build a Product Landing Page

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

<!-- file: index.html -->
<!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>
    <header id="header">
        <img id="header-img" src="https://www.nasa.gov/sites/default/files/thumbnails/image/wotm_01_blue_mobile.jpg">
        <nav id="nav-bar">
          <a href="#features" class="nav-link">Features</a>
          <a href="#how-it-works" class="nav-link">how it works</a>
          <a href="#pricing" class="nav-link" >Pricing</a>
        </nav></header>
      <video id="video">
        <source src="https://www.youtube.com/watch?v=xhIjIicZIsQ&t=1s" type="video/mp4" >
></video>
      <form id="form" action="https://www.freecodecamp.com/email-submit">
          <input id="email" placeholder="Enter you Email" type="email" name="email"></input>
          <input id="submit" type="submit"></input></form>
  </body>
</html>
/* file: styles.css */
@media only screen and (max-width: 550px) {
  img {
    width: 500px;
    height: 500px;
  }
}
.nav-link {
  display: flex;
}
header {
  position: fixed;
  top: 0px;
}

Your browser information:

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

Challenge: Product Landing Page - Build a Product Landing Page

Link to the challenge:

This keeps me 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 ).

For each href’s value, you should have an HTML element with an id attribute set to the same value, but without the # character in front of it.

I changed my code but it keeps saying the same thing.

Use your editor’s </> button to format code properly!

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