Tell us what’s happening:
What am I missing. In the users story I followed the instructions of step 8 about card number. When I run the test i get:
- You should have an input element with an id and name of card-number within your form.
I entered “card number” the same as I did with “card name”. I even went to youtube and followed his example. I’m not understanding what I missed.
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="Cube">
</section>
<section>
<div>
<h2>Payment Information</h2>
<form>
<label for="card-name">Cardholder 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="text" id="card-number" name="card-number" required aria-required="true">
</div>
<div>
<label for="Expiry-Date">Expiry Date:</label>
<input type="text" id="Expiry-Date" name="Expiry-Date" required aria-required="true" placeholder="MM/YY">
</div>
<div>
<label for="CCV">CCV:</label>
<input type="text" id="CCV" name="CCV" required aria-required="true">
</div>
<div>
<button>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/138.0.0.0 Safari/537.36
Challenge Information:
Build a Checkout Page - Build a Checkout Page