Build a Checkout Page - Build a Checkout Page

Tell us what’s happening:

My step 16 and 18 aern’t working and I dont know where I have written the code wrong I have written it right after the input element like it says but I dont understand if I have written the code wrong or in the wrong place

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="a slightly turned rubix cube">
  </section>


  <section>
  <h2>Payment Information</h2>
  <form>
     <label 
     id="card-name" 
     name="card-name" 
     type="text">
       <span aria-hidden="true">*</span>
     <input 
     type="text" 
     id="card-name" 
     name="card-name" 
     required>
     </input>
       </label>
    
      <label 
      id="card-number" 
      name="card-number" t
      type="text">
        <span aria-hidden="true">*</span>  
     <input
   aria-describedby="card-number-help"
        required 
        id="card-number" 
        name="card-number" 
        type="text">
  <p id="card-number-help">Please fill out your 16 digit card-number</p>

    </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/146.0.0.0 Safari/537.36

Challenge Information:

Build a Checkout Page - Build a Checkout Page

Welcome to the forum @Rsw !

Did the instructions ask you to add id, name, and type attributes to the label element? And id attributes must always be unique. Do you remember how to associate a label to an input element? The attribute used for that is missing from your label element.

Until you’re comfortable with HTML, you may find it helpful to use this HTML Validator.

Happy coding!