Build a Checkout Page - Build a Checkout Page

Tell us what’s happening:

I’m stuck on step 11. What am I missing? I’ve set the (aria-required=“true”) but its not working.

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="a rubiks cube"/>
    </section>
<section>
    <h2>Payment Information</h2>
    <form>
        <input name="card-name" aria-required="true" id="card-name"/>
        <label for="card-name">Card Name</label>
        <input name="card-number" aria-required="true" id="card-number"/>
        <label for="card-number">Card Number</label>
    </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/134.0.0.0 Safari/537.36

Challenge Information:

Build a Checkout Page - Build a Checkout Page

You need to satisfy both parts:

  • should be required
  • and have an aria-required attribute set to true.

you are doing the second thing but not the first one

Thank you. I got it.