Debug a Donation Form - Debug a Donation Form

Tell us what’s happening:

i don’t want to try, I want to do really well. If even there has been a FCC theory test I have struggled for 2-3 days but eventually figured out the code issues, changed it and the code has passed well but this is now really tickling my pickle…what in the &*((%££ does
“// running tests
11. You should associate every input element with a label element using the for and id attributes.
// tests completed”
I have redone this one the most out of the whole bootcamp haha!

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="fullName">Full Name:</label>
    <input type="text" name="name" id-"fullName" required>
    
    <label for="email">Email Address:</label>
    <input type="email" name="email" id="email" required>
    
    <label for="Donation Amount ($)">Donation Amount ($):</label>
   <input type="number" name="amount" id="Donation Amount ($):" required>
    
    <label for="newsLetter">Subscribe</label>
    <input type="checkbox" name="newsletter" id="newsLetter">

    <input type="submit" value="Send">
  </form>
</body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36

Challenge Information:

Debug a Donation Form - Debug a Donation Form

Hi @bunnyprog

One of the id attributes does not have the correct syntax:

Attribute values cannot contain spaces.

Happy coding

1 Like