Tell us what’s happening:
All my input elements are associated with label elements, but the test is still failing at option 10. Everything looks ok.
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="multicolored cube divided into 3 layers"/>
</section>
<section>
<h2>Payment Information</h2>
<form>
<div>
<label for="card-name">Card Name:</label>
<input type="text" id="card-name" name="card-name" required aria-required="true">
</div>
<div>
<label for="card-number">Card Number:</label>
<input type="number" id="card-number" name="card-number" required aria-required="true">
</div>
<div>
<label for="expiry_date">Expiry Date:</label>
<input type="date" id="expiry-date" name="expiry-date" required aria-required="true">
</div>
<div>
<label for="cvv">CVV:</label>
<input type="number" id="cvv" name="cvv" minlength="3" maxlength="3" required aria-required="true">
</div>
<div>
<button type="submit">Place Order</button>
</div>
</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/139.0.0.0 Safari/537.36
Challenge Information:
Build a Checkout Page - Build a Checkout Page
https://www.freecodecamp.org/learn/full-stack-developer/lab-checkout-page/build-a-checkout-page