Tell us what’s happening:
Hello,
Pleas can someone help me out with this.
The code keeps saying that the input should be associated with a label.
what am I not doing well?
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="an image of multi coloured cube"/>
<p>Ruby Cube</p>
<p>$20.90</p>
</section>
<section>
<h2>Payment Information</h2>
<form>
<div>
<lable for="card-name">Cardholder name</label>
<input required type="text" name="card-name" id="card-name" aria-required="true"/><br>
</div>
<div>
<lable for="card-number">Cardholder number</label>
<input required type="text" name="card-number" id="card-number" aria-required="true"/> <br>
</div>
<div>
<lable for="expiry-date">Expiry date</label>
<input required type="text" name="expiry-date" id="expiry-date" aria-required="true"/>
<br>
</div>
<div>
<label for="card-pin">CVV </label>
<input required type="text" name="card-pin" id="card-pin"/><br>
</div>
<input type="submit" value="submit"/>
<br>
</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/134.0.0.0 Safari/537.36
Challenge Information:
Build a Checkout Page - Build a Checkout Page