Build a Checkout Page - Build a Checkout Page

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

An id must be unique. I see two elements here with the same id.

Please i have changed the id to name and then to text but both did not work

Please show your updated code and the errors you are getting.

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

I have merged your two topics, please do not create multiple topics for the same challenge

Please I corrected it but it’s still not passing

Please share your updated code

Please it worked thanks next time I would be more vigilant