Tell us what’s happening:
- You should have a p element with an id of card-number-help immediately after the card number input.
I don’t know what mistake I made with my code
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="It's a card"/>
</section>
<section>
<h2>Payment Information</h2>
<form>
<label for="card-name">Card name<span aria-hidden = "true">*</span><label>
<input id="card-name" name="card-name" type="text" required/>
<label for="card-number">Card number<span aria-hidden="true">*</span><label>
<input id="card-number" name="card-number" type="text" aria-describedby="card-number-help" required/><p id="card-number-help">Lorem ipsum</p>
</form>
</section>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Challenge Information:
Build a Checkout Page - Build a Checkout Page