Build a Checkout Page - Build a Checkout Page

Tell us what’s happening:

  1. Your card name input should have a type of text.

I have rearranged the card-name input all the ways I can think of. I have included [type=“text”]. Please help.

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="unsolved rubik's cube"></a>
    </section>
        
    <section>
        <h2>Payment Information</h2>
        <form>
            <label for="card-name">Name<span id="card-name" aria-hidden="true">*</span>  
            <input required type="text" id="card-name" name="card-name" /></label>
    <br>
            <label for="card-number">Card Number:<span id="card-name" aria-hidden="true">*</span> </label>
            <input type="text" id="card-number" name="card-number" value="1234" required aria-required="true" aria-describedby="card-number-help"><p id="card-number-help">XXXX XXXX XXXX XXXX</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/139.0.0.0 Safari/537.36

Challenge Information:

Build a Checkout Page - Build a Checkout Page

Welcome to the forum @mchang607

Make sure id attribute values are unique.

Happy coding