Hello guys I have been trying to complete this user story with no sucess;
User Story #12: When I click the #submit
element, the email is submitted to a static page (use this mock URL: https://www.freecodecamp.com/email-submit).
I’ll appreciate the guidance to find to correct answer, as well as suggestions to improve my code. I feel like it looks to…messy and will lead to problems in the future.
<!DOCTYPE html>
<main>
<header id="header">
<h1>It works, and I don't know why...</h1>
<nav id="nav-bar">
<a class="nav-link" href="#header">Reference towards the Header - </a>
<a href="#header-img" class="nav-link"> Reference towards the Image - </a>
<a class="nav-link" href="#footer"> Reference Towards the Footer </a>
</ul>
</nav>
<video id="video" controls width="300px";>
<source src="https://www.youtube.com/watch?v=mg7netw1JuM"
type="video/mp4"
muted="false">
</video>
<div>
<img id="header-img" src="https://static.wikia.nocookie.net/claymore/images/4/48/Teresa_Color.png/revision/latest?cb=20140429201957">
</div>
</header>
<body>
</body>
<footer id="footer">
<form id="form" action="https://www.freecodecamp.com/email-submit">
<input
id="email"
type="email"
placeholder="Enter your email"
required>
<input
id="submit"
type="Submit"
value="Submit"
>
</form>
</footer>
</main>
</html>