Tell us what’s happening:
I need help passing step 12 it keeps telling me that all of your input elements that aren’t a type of submit should have a label element associated with them.
Your code so far
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Checkout Page</title>
</head>
<body>
<h1>Checkout</h1>
<section>
<h2>Your Cart</h2>
<img src="https://cdn.freecodecamp.org/curriculum/labs/cube.jpg" alt="A labscube with colours">
</section>
<section>
<h2>Payment Information</h2>
<form>
<label type="text" id="card-name">Card-holder name</label><input id="card-name" name="card-name" type="text">
<label type="text" id="card-number">Card-number</label><input aria-describedby="card-number-help" id="card-number" name="card-number" type="text">
<p id="card-number-help">Please enter your 16-digit card number without spaces or dashes.</p>
<div>
<label for="expiry date">Expiry Date<span aria-hidden="true">*</span></label>
<input id="expiry date" required="" placeholder="MM/YYYY">
</div>
<div>
<label for="cvv"><span aria-hidden="true">*</span>CVV</label>
<input id="cvv" required="">
</div>
<label for="submit"><input id="submit" type="submit" value="place order"></label>
</form>
</section>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.7559.96 Safari/537.36
Challenge Information:
Build a Checkout Page - Build a Checkout Page