Good day all,
I completed and passed the Product landing page project, however when I look at the adjacent preview page I cannot see the nav bar, email address box or the footer section. Any reason why this code has passed without those sections being visible?
Your code so far
<!-- file: index.html -->
<!doctype html>
<html lang="en"><html>
<meta charset=”UTF-8">
<meta name=”website” content=”Landing Page”>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<title>Freecodecamp Rocks</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main>
<header id="header">
<nav id="nav-bar">
<a class="nav-link" id="Features" href="#Features">Features</a>
<a class="nav-link" id="How_it_works" href="#How_it_works">How it works</a>
<a class="nav-link" id="Pricing" href="#Pricing">Pricing</a>
</nav>
<div class="form">
<form id="form" action="https://www.freecodecamp.com/email-submit">
<label="for email">
<input type="email" id="email" name="email" placeholder="Enter your email address"></input>
<input type="submit" id="submit">
</input>
</form>
</header>
<header id="header">
<img id="header-img" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/product-landing-page-logo.png" alt="logo"</img>
<h2>Premium Materials</h2>
<p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your purchase.</p>
<h2>Fast Shipping</h2>
<p>We make sure you recieve your trombone as soon as we have finished making it. We also provide free returns if you are not satisfied.</p>
<h2>Quality Assurances</h2>
<p>For every purchase you make, we will ensure there are no damages or faults and we will check and test the pitch of your instrument.</p>
<iframe id="video"
src="https://youtu.be/y8Yv4pnO7qc">Roman Carnival Overtures
</iframe>
</main>
</body>
<footer id="footer">
<a href="#">Privacy</a>
<a href="#">Terms</a>
<a href="#">Contact</a>
</footer>
</html>
/* file: styles.css */
*{
background-color:grey
}
/* On smaller screens, where height is less than 450px, change the style of the navbar (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
# navbar {padding-top: 15px;}
#navbar a {font-size: 18px;}
}
header{
position:fixed;
}
#contact-block{
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
h1{
font-size: 75%
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Challenge: Product Landing Page - Build a Product Landing Page
Link to the challenge: