Build a Checkout Page - Build a Checkout Page

Tell us what’s happening:

I am struggling with number 16. I have popped in the code and from what i can see it is immediately after the . Is there a mistake in the code somewhere that I am missing?

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="rubiks cube">
    </section>
    <section>
        <h2>Payment Information</h2>
        <form>
           <p> <label for="card-name">Name on Card<span aria-hidden="true">*</span></label>
            <input required id="card-name" name="card-name" type="text"></input></p>
            <p><label for="card-number">Card Number<span aria-hidden="true">*</span></label>
            <input
       aria-describedby="card-number-help"
            required 
            id="card-number" 
            name="card-number" 
            type="text">
            </input>
             <p id="card-number-help">Please fill out your 16 digit card-number.</p>
            </p>
        </form>
    </section>
</body>

</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36

Challenge Information:

Build a Checkout Page - Build a Checkout Page

What is test 16?

What specific line of your code do you think should satisfy that test?

Hi @josieproto and welcome to our community!

Why have you put your label and input elements inside p elements?

Also, input elements are self-closing, so don’t need a separate closing tag.

For instance: