Tell us what’s happening:
My code isn’t accepted, this is what I get instead;
“You should have a p element with an id of card-number-help immediately after the card number input.”
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>
<figure>
<img src="https://cdn.freecodecamp.org/curriculum/labs/cube.jpg"alt="Rubik's cube">
<figcaption>Rubik's Cube $4.50</figcaption>
</figure>
</section>
<section>
<h2>Payment Information</h2>
<form>
<label for="card-name">Card Name:<span aria-hidden="true">*</span><label>
<input
required
type="text"
id="card-name"
name="card-name"
>
<label for="card-number">Card Number:<span aria-hidden="true">*</span><label>
<input
aria-describedby="card-number-help"
required
type="text"
id="card-number"
name="card-number"
>
<p id="card-number-help">Provide valid card number.</p>
<input type='button'value="submit">
</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/148.0.0.0 Safari/537.36
Challenge Information:
Build a Checkout Page - Build a Checkout Page