# Build a Checkout Page - Build a Checkout Page

**URL:** <https://forum.freecodecamp.org/t/build-a-checkout-page-build-a-checkout-page/799479>\
**Category:** Curriculum Help\
**Tags:** html, html-css\
**Created:** [September 5, 2026, 4:21am UTC](https://forum.freecodecamp.org/t/build-a-checkout-page-build-a-checkout-page/799479 "2026-09-05T04:21:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sherifashraf1248](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sherifashraf1248/32/420691_2.png) [@sherifashraf1248](https://forum.freecodecamp.org/u/sherifashraf1248)\
**Post date:** [September 5, 2026, 4:21am UTC](https://forum.freecodecamp.org/t/build-a-checkout-page-build-a-checkout-page/799479/1 "2026-09-05T04:21:32Z")

</div>

### Tell us what’s happening:

I don’t know why I get this error  
12. All of your input elements that aren’t a type of submit should have a label element associated with them.  
even though I am using the label element with for attribute?

### Your code so far

```html
<!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="rubik's cube">
        <p>rubik's cube</p>
        <p>29$</p>
    </section>
    <section>
        <h2>Payment Information</h2>
        <form>
            <label for="card-name" >Cardholder name: <span aria-hidden="true">*</span></label>
            <input id="card-name" name="card-name" type="text" required><br/>
            <lable for="card-number" >Card number: <span aria-hidden="true">*</span></</label> 
            <input required id="card-number" name="card-number" type="text"
            aria-describedby="card-number-help">
            <p id="card-number-help">Please enter your 16-digit card number without spaces or dashes.</p>
            <input type="submit" value="Place the order">  
        </form>    
    </section>    
</body>

</html>

```

### Your browser information:

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:155.0) Gecko/20100101 Firefox/155.0`

### Challenge Information:

Build a Checkout Page - Build a Checkout Page

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design-v9/lab-checkout-page/build-a-checkout-page)**
>
> Learn to Code — For Free

GitHub Link: [freeCodeCamp/curriculum/challenges/english/blocks/lab-checkout-page/66da326c02141df538f29ba5.md at main · freeCodeCamp/freeCodeCamp · GitHub](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/blocks/lab-checkout-page/66da326c02141df538f29ba5.md)

---

<div class="post-metadata">

**Author:** ![Teller](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/teller/32/412338_2.png) [@Teller](https://forum.freecodecamp.org/u/Teller)\
**Post date:** [September 5, 2026, 4:26am UTC](https://forum.freecodecamp.org/t/build-a-checkout-page-build-a-checkout-page/799479/2 "2026-09-05T04:26:31Z")

</div>

Welcome to the forum @sherifashraf1248

One of the elements has a typo.

> [@sherifashraf1248](#):
>
> `<lable`

Please remove the extra code between the closing tags.

> [@sherifashraf1248](#):
>
> `</span></</label>`

Happy coding

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [September 7, 2026, 4:26am UTC](https://forum.freecodecamp.org/t/build-a-checkout-page-build-a-checkout-page/799479/3 "2026-09-07T04:26:39Z")

</div>

Closed on September 7, 2026, 4:26am UTC

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