Debug a Donation Form - Debug a Donation Form

Tell us what’s happening:

I am unable to resolve the following issue: “11. You should associate every input element with a label element using the for and id attributes.”
What am I doing wrong, please?

Your code so far

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Donation Form</title>
</head>
<body>
  <h1>Donation Form</h1>
  <form>
    
    <label for="full-name">Full Name:</label>
    <input id="full-name" type="text" name="name" required>

    <label for="email-address">Email Address:</label>
    <input id="email-address" type="email" name="email" required>

    <label for="donation-amount">Donation Amount ($):</label>
    <input id="donation-amount" type="number" name="amount" required>

    <input type="checkbox" name="newsletter">

    <label for="subscribe">Subscribe</label>
    <input id="subscribe" type="submit" name="subscribe" value="Send">
  </form>
</body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36

Challenge Information:

Debug a Donation Form - Debug a Donation Form

Welcome to the forum @Wuraola

It looks like you added the subscribe label to the send button.

Please reset the step to restore the seed code and try again.

Happy coding

1 Like

Problem resolved. Thank you so much! @Teller

1 Like
please i'm facing the same problem and i can't reset the step

there is a Reset this lesson button

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Get Help > Ask for Help button located on the challenge.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.