Build a Checkout Page - Build a Checkout Page

Tell us what’s happening:

Hey guys a little help here too see and understand because i’m kinda confused because i did i the instructions asked me too
“3. You should have at least two section elements after the h1 element.”

please help thank u

Your code so far

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Checkout</title>
    
</head>
<body>
    <div class="container">
        <h1>Checkout</h1>
        
        <div class="checkout-content">
            <section>
                <h2>Your Cart</h2>
                <div class="cart-item">
                    <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRnCvTiNAguIBJJP1QeZ670M1FiUGqfKIarxBeeAFasUMTEMMiZA6MRf5MVJHBMsrnuhV8&usqp=CAU" alt="Diary of a wimpy kid book">
                    <div class="item-details">
                        <div class="item-name">Diary of a Wimpy.</div>
                        <div class="item-price">$14.99</div>
                        <div class="quantity">
                            <button>-</button>
                            <span>1</span>
                            <button>+</button>
                        </div>
                        <button class="remove-btn">Remove</button>
                    </div>
                <div class="cart-total">
                    Total: $14.99
                </div>
            </section>
            
            <section>
                <h2>Payment Information</h2>
                <form>
                    <div class="form-group">
                        <label for="card-name">Cardholder Name</label>
                        <input type="text" id="card-name" name="card-name" required aria-required="true">
                    </div>
                    
                    <div class="form-group">
                        <label for="card-number">Card Number </label>
                        <input type="text" id="card-number" name="card-number" required aria-required="true" placeholder="0011 2233 4455 6677">
                    </div>
                    
                    <div class="form-row">
                        <div class="form-group">
                            <label for="expiry">Expiration Date</label>
                            <input type="text" id="expiry" name="expiry" placeholder="MM/YY">
                        </div>
                        <div class="form-group">
                            <label for="cvv">CVV</label>
                            <input type="text" id="cvv" name="cvv" placeholder="123">
                        </div>
                    </div>
                    
                    <button type="submit">Complete Purchase</button>
                </form>
            </section>
        </div>
    </div>
</body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36

Challenge Information:

Checkout Page - Build a CBuild a Checkheckout Page

https://www.freecodecamp.org/learn/full-stack-developer/lab-checkout-page/build-a-checkout-page

Hi @thabelomanugeni

Try removing the div element nesting the section elements.

Happy coding

ok thank you i will try it now

It worked , thank you so much

happy coding :technologist:

1 Like