Tell us what’s happening:
I’ve met all the requirements except the 2 :
5. When I click a .nav-link button in the nav element, I am taken to the corresponding section of the landing page.’
– There are .nav-link buttons which have adequate a hrefs made with anchors to three sections of the landing page, despite that I’m not passing… I’m stuck.
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 tried 2 methods : ‘form action=’ and ‘a href’ with ‘id=‘submit’’ both including ‘input’, to no avail… Also stuck.
Any suggestions will be appreciated. Thanks in advance!
Your code so far
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="landing.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fredoka+One&family=Lato:wght@700&display=swap" rel="stylesheet">
<title>Weelso - Need Wheels Sometimes?</title>
</head>
<body>
<header id="header">
<div class="pierwszydiv">
<div>
<h1 id="slogan">Need Wheels Sometimes?</h1>
<br>
<h1 id="slogan2">Don't buy. Hire.</h1>
</div>
<img src="car.jpg" alt="Man driving car" id="header-img">
<p class="wheelso">Wheelso</p>
</div>
<nav id="nav-bar">
<div> <img src="logo.png" alt="logo" class="logo"></div>
<ul class="nav-bar-items">
<li class="nav-link" class="nav-bar-item"><a href="#form"> Get Your Ride</a></li>
<li class="nav-link" class="nav-bar-item"><a href="#testimonials">Testimonials</a></li>
<li class="nav-link" class="nav-bar-item"><a href="#copyright"> Contact us</a></li>
</ul>
</nav>
</header>
<fieldset>
<form id="form">
<label for="email"> E-mail</label>
<br>
<input type="email" name="email" id="email" pattern="^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"placeholder="Enter Your E-mail Here" required>
<br>
<label for="name"> Name</label>
<br>
<input type="text" name="name" id="name" placeholder="Enter Your Name Here" required>
<br>
<label for="phone"> Phone No.</label>
<br>
<input type="text" name="phone" id="phone" placeholder="Enter Your Phone Number Here" required>
<br>
<!-- <a href="https://www.freecodecamp.com/email-submit">
<input type="submit" id="submit" value="Get Your Ride Now!"/>
</a> -->
<form action="https://www.freecodecamp.com/email-submit)">
<input type="submit" id="submit" name="Get Your Ride Now!" value="Bring Me Me Ride Now!">
</form>
</form>
</fieldset>
<section class="why">
<div class="why1">
<p>An app guide right to your ride<p>
<p>Reliable cars</p>
<p>Acknowledged car brands</p>
</div>
<div class="why2">
<p>Instant ride from around a corner</p>
<p>Pay only for what you drove</p>
<p>Competetive rates</p>
</div>
</section>
<div>
<video src="#" width="#" height="#" controls id="video">
<source src="#">
</video>
</div>
<section class="key-features" id="testimonials">
<h1 class="key-features-slogan">Many Good Reasons to Stick Around</h1>
<ul class="cala-lista">
<li class="lista-cred">
<div class="lista-cred-img1">
<!-- obrazek -->
</div>
<p class="lista-opis">Weekly shopping, what else do I need a car for?</p>
</li>
<li class="lista-cred">
<div class="lista-cred-img2">
<!-- obrazek -->
</div>
<p class="lista-opis">Nifty option to commute to work.</p>
</li>
<li class="lista-cred">
<div class="lista-cred-img3">
<!-- obrazek -->
</div>
<p class="lista-opis">Was late and it save my day! </p>
</li>
<!-- <div class="test-head1">1</div>
<div class="test-head2">2</div>
<div class="test-head3">3</div>
<div class="test-text1"><p>Only for weekly shopping, what else do I need a car for?</p></div>
<div class="test-text2"><p>Nifty option to commute to work.</p></div>
<div class="test-text3"><p></p></div>
</li> -->
</ul>
</section>
<footer>
<p class="copyright" id="copyright"> <small>
(c) 2021 All rights reserved by Wheelso tel. +1 232 4943202</small></p>
</footer>
</body>
</html>
Your browser information:
N/A
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
Challenge: Build a Product Landing Page
Link to the challenge: