Build a Checkout Page - Build a Checkout Page

Tell us what’s happening:

Hi, I did the checkout page lab. It gives me 2 errors. But I did it right.
Error:
you should only have one h1 element .
you should have at least two section element.

but i have only one h1 element and two section

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="This is a product spoon">
    </section>
    <section>
        <h2>Payment Information</h2>
        <form>
        <label for="card-name">Card Name<span aria-hidden="true">*</span></label>
        <input type="text" id="card-name" name="card-name" required>
        <label for="card-number">Card Number<span aria-hidden="true">*</span></label>
        <input type="text" id="card-number" name="card-number" required aria-describedby="card-number-help"> 

        <p id="card-number-help">Please enter your 16-digit card number without spaces or dashes.</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 @mohammadtavassoli !

Please check your closing tag.

Happy coding!

1 Like

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