Build a Checkout Page

  1. All of your input elements that aren’t a type of submit should have a label element associated with them.
    This is the only test I am not passing. Any suggestions:
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <title>Checkout Page</title>
</head>
<h1>Checkout</h1>
<section>
    <h2>Your Cart</h2>
    <img src="https://cdn.freecodecamp.org/curriculum/labs/cube.jpg"
          alt="a rubics cube"
        />
</section>
<body>
<section>
    <h2>Payment Information</h2>
    <form action="/tutorial/action.html">
  <fieldset>
    <legend>Contact Details</legend>

   <label for="name">Cardholder Name
            <input type="text"id="card-name" value="name" name="card-name" required aria-required="true">  
            </label>
            <br> 
         <label for="card-name">Card Number:
    <input type="text" id="card-number" name="card-number" value="1234" required aria-required="true">
    </label>

           </div>

           <div>
           <label 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="Place Order" id="place order" value="Place Order">
  </fieldset>
</form>

</section>
</body>
</html>

I’ve edited your post to improve the readability of the code. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

please share a link to the project

this is not a type of submit

Hi,
Also, the label here does not match the input.

It passed. Thank you all for your help.