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!
- Your product landing page should have a
header
element with a correspondingid="header"
- You can see an image within the
header
element with a correspondingid="header-img"
(A logo would make a good image here) - Within the
#header
element, you can see anav
element with a correspondingid="nav-bar"
- You can see at least three clickable elements inside the
nav
element, each with the classnav-link
- When you click a
.nav-link
button in thenav
element, you are taken to the corresponding section of the landing page - You can watch an embedded product video with
id="video"
- Your landing page has a
form
element with a correspondingid="form"
- Within the form, there is an
input
field withid="email"
where you can enter an email address - The
#email
input field should have placeholder text to let users know what the field is for - The
#email
input field uses HTML5 validation to confirm that the entered text is an email address - Within the form, there is a submit
input
with a correspondingid="submit"
- When you click the
#submit
element, the email is submitted to a static page (use this mock URL:https://www.freecodecamp.com/email-submit
) - The navbar should always be at the top of the viewport
- Your product landing page should have at least one media query
- Your product landing page should utilize CSS flexbox at least once
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">
<link rel="stylesheet" href="styles.css">
<title>
</title>
</head>
<body>
<header id="header">
<img id="header-img" src="https://www.random.jpg">
<!--problem-->
<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="https://www.freecodecamp.com/email-submit">
<input id="email" type="email" placeholder="email" name="email">
<input id="submit" type="submit">
</form>
<!-- //problem -->
</header>
</body>
</html>
/* 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/116.0.0.0 Safari/537.36
Challenge: Product Landing Page - Build a Product Landing Page
Link to the challenge: