Oduma
1
Tell us what’s happening:
Please I have tried most solutions but my id for test 8 is not pass
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 unarranged cubix cube ">
</section>
<section>
<h2>Payment Information</h2>
<form>
<label for="card-name"><span id="card-name" type="text" aria-hidden="true"> *</span>Card Name <input id="card-name" name="card-name" type="text" required aria-required="true" >
</label>
<label id="card-number-help"> Card Number <span aria-hidden="true">*</span>
<input id="card-number" name="card-number" type="text" required="" aria-required ="true" aria-describedby="card-number-help" > <p id="card-number-help" aria-describedby="card-number">Enter card number eg.000 333 555 00</p>
</label>
</section>
</form>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36
Challenge Information:
Build a Checkout Page - Build a Checkout Page
dhess
2
An id must be unique. I see two elements here with the same id.
Oduma
3
Please i have changed the id to name and then to text but both did not work
dhess
4
Please show your updated code and the errors you are getting.
Oduma
5
Tell us what’s happening:
I just changed the id for the label of the card name to text but still didn’t pass
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 unarranged cubix cube ">
</section>
<section>
<h2>Payment Information</h2>
<form>
<label for="card-name"><span id="text" type="text" aria-hidden="true"> *</span>Card Name <input id="card-name" name="card-name" type="text" required aria-required="true" >
</label>
<label id="card-number-help"> Card Number <span aria-hidden="true">*</span>
<input id="card-number" name="card-number" type="text" required="" aria-required ="true" aria-describedby="card-number-help" > <p id="card-number-help" aria-describedby="card-number">Enter card number eg.000 333 555 00</p>
</label>
</section>
</form>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36
Challenge Information:
Build a Checkout Page - Build a Checkout Page
you should put the input tag outside the label tag, and then associate them explicitly.
Why are you adding an id for your label at all?
id need to be unique, meaning that two elements cannot have the same id
ILM
8
I have merged your two topics, please do not create multiple topics for the same challenge
Oduma
10
Please I corrected it but it’s still not passing
Please share your updated code
Oduma
12
Please it worked thanks next time I would be more vigilant