Product Landing Page - Build a Product Landing Page

Tell us what’s happening:
I think I did a typo, or something is either missing or misplaced, the code isn’t going through. I have checked myself multiple time, yet on my eyes everything is correct, I need someone to point (not hint) what I did wrong and why it’s wrong so I can submit this, thank you!

  1. Your product landing page should have a header element with a corresponding id="header"
  2. You can see an image within the header element with a corresponding id="header-img" (A logo would make a good image here)
  3. Within the #header element, you can see a nav element with a corresponding id="nav-bar"
  4. You can see at least three clickable elements inside the nav element, each with the class nav-link
  5. When you click a .nav-link button in the nav element, you are taken to the corresponding section of the landing page
  6. You can watch an embedded product video with id="video"
  7. Your landing page has a form element with a corresponding id="form"
  8. Within the form, there is an input field with id="email" where you can enter an email address
  9. The #email input field should have placeholder text to let users know what the field is for
  10. The #email input field uses HTML5 validation to confirm that the entered text is an email address
  11. Within the form, there is a submit input with a corresponding id="submit"
  12. When you click the #submit element, the email is submitted to a static page (use this mock URL:
  13. The navbar should always be at the top of the viewport
  14. Your product landing page should have at least one media query
  15. Your product landing page should utilize CSS flexbox at least once

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="styles.css">
      <header id="header">
      <img id="header-img" src="https://www.random.jpg">
      <nav id="nav-bar">
      <nav class="nav-link" href="#" id="header">
      <nav class="nav-link" href="#" id="title">
      <nav class="nav-link" href="#" id="head">
        <iframe id="video" src="#">
        <form id="form" action="">
        <input id="email" type="email" placeholder="email" name="email"> 
        <input id="submit" type="submit">
        <!-- //problem -->
/* file: styles.css */
#header {

Your browser information:

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

Challenge: Product Landing Page - Build a Product Landing Page

Link to the challenge:

I would start by running your code through an HTML validator and fixing everything it says is wrong:

A big problem you have is that ids are supposed to be unique but you repeat id=header

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