Build a Checkout Page - Build a Checkout Page

Tell us what’s happening:

Issues with 9,11 and 16. My inputs have the type=“text” but it is saying that it does not. my P element is directly after the input element as 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="a rubik cube"/>
  </section>
  <section>
    <h2>Payment Information</h2>
    <form>

      <label for="card-name" id="card-name">Cardholder name<span aria-hidden="true">*</span></label>

      <input 
      type="text" 
      required 
      id="card-name" 
      name="card-name"/>

      <label for="card-number" id="card-number">Card Number <span aria-hidden="true">*</span></label>

      <input 
      type="text" 
      aria-describedby="card-number-help" 
      required 
      id="card-number" 
      name="card-number"/>

<p id="card-number-help">this is the required card number format</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/145.0.0.0 Safari/537.36

Challenge Information:

Build a Checkout Page - Build a Checkout Page

Welcome to the forum @Joshmaster1046 !

The HTML label elements do not need an id attribute here, and id attributes must be unique.

Happy coding!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.