Debug a Donation Form - Debug a Donation Form

Tell us what’s happening:

My code does not pass. I can’t find anything wrong with it; however, 6 and 7 keep failing.

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

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

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

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

    <input type="submit" name="submit">
  </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/152.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

I have figured it out. Since the label element has a for attribute, it should not be nested.

Welcome back @joshuasandy3,

Were you asked to nest the newsletter input element inside a label element?
Were you asked to add a value attribute to eh newsletter input element?
Were you asked to change the value attribute to a name attribute for the last input element?

You may want to reset this step and try again, being careful to only change what is asked.

Happy coding