Debug a Donation Form - Debug a Donation Form

Tell us what’s happening:

I need help checking my code. I can’t pass test number 11. Am I missing something?

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 id="full_name" for="name">Full Name:</label>
    <input type="text" id="full_name" name="name" required/>

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

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

    <input type="checkbox" id="news_letter" name="newsletter"/>
    <label id="news_letter" for="newsletter">Subscribe</label>

    <input type="submit" id="submit-only" 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/149.0.0.0 Safari/537.36

Challenge Information:

Debug a Donation Form - Debug a Donation Form

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-debug-donation-form/690ddb5e6ee94eb73ed172b0.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hey @butonglah,

id attribute value must be unique within an entire HTML document. Also, whatever id you assign to the input element should be used for the for attribute.

Welcome to the forum @butonglah

Make sure the label contains the for attribute, not the id attribute.

Make sure the values for matching for and id attributes are the same.

Here:

  1. the id attribute should not appear in the label opening tag.
  2. the id and for attribute values do not match.

Happy coding