Tell us what’s happening:
in the ‘product landing page’ test, I dont understand why this input isnt working correctly when it works correctly for the other inputs that I make.
Here are the parts it says im getting wrong:
1.You should have an input
element with an id of
email`
2.Your #email
should have the placeholder
attribute with placeholder text
3.Your #email
should use HTML5 validation by setting its type
to email
meanwhile the ‘submit’ portions are considered correct, despite being written exactly the same:
1.You should have an input
element with an id
of submit
2.Your #submit
should have a type
of submit
Your code so far
<!DOCTYPE html>
<html lang="en-us">
<link src="stylesheets" href="styles.css">
<body>
<header id="header">
<img id="header-img" src="https://www.logolynx.com/images/logolynx/91/91725dbd13a49e3485f494b679120ae5.png">
<nav id="nav-bar">
<a class="nav-link"id="home" href="#home">home</a>
<a class="nav-link"id="gallery" href="#gallery">gallery</a>
<a class="nav-link"id="email" href="#email">email</a>
<a class="nav-link"id="faq" href="#faq">faq</a>
</nav>
</header>
<div id="container">
<div id="home" class="gridItem viewWide">
<h1 style="font-size:70px"> Things inc. </h1>
</div>
<div class="gridItem viewWide" >
<h3 style="height:180"> <i>"Where we bring things to life"</i> <h3>
</div>
<div class="gridItem viewWide">
<h4> What can we do for you?</h4>
<div class="gridItem"> <p> <b>we can do a multitide of things if you allow us to work with you</b></p> </div>
</div>
<div class="gridItem">
<img src="sdfsd" href="gallery">
</div>
<div class="gridItem">
<iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/LtTFaVxxeAw" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</video>
</div>
<div>
<form class="gridItem" action="https://www.freecodecamp.com/email-submit" id="form">
<input type="email" id="email" name="email" placeholder="email@example.com">
<input id="submit" type="submit">
</form>
</div>
</body>
<footer id="faq">
</footer>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36
Challenge: Build a Product Landing Page
Link to the challenge: