Debug a Donation Form - Debug a Donation Form

Tell us what’s happening:

I tried everything;
-dbl attributes (for and id) with diffrents tags for labels and inputs
-implicitly linking them by changing my label end tag at the end of inputs
-

, ,

I don’t see any typo nor missings tags,
I should have enough attributes if not to many.

Please help.

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

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

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

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

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

Challenge Information:

Debug a Donation Form - Debug a Donation Form

hello @MtnDwrf welcome to the forum!

  1. The typo –
  1. I think you might have changed the name-attribute of the checkbox input from the original code. Originally it was name="newsletter". You can either reset the lesson or change the name attribute of the checkbox input to the correct one manually.

Everything’s fine now, I’m not sure I would’ve catch that on my own this quickly!

Thank you so much!!

1 Like