Debug a Donation Form - Debug a Donation Form

Tell us what’s happening:

Please, for the love the Spaghetti Monster, help me. I’ve done this before and it was marked complete and now it isn’t and I keep getting stuck on “Failed:13. Your checkbox input should not have a required attribute.” I’ve reset, researched and retyped it all. I put it in word to see if I had too many spaces. I haven’t started crying, but I need help.

Your code so far

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Donation Form</title>
</head>
<body>

  <form>
    <label for="fullName">Full Name:</label>
    <input type="text" id ="fullName" name="name" required>

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

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

    <label for="newsLetter">Subscribe:</label>
    <input type="checkbox" id="newsLetter" name="newsLetter">
    
    <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/143.0.0.0 Safari/537.36 Edg/143.0.0.0

Challenge Information:

Debug a Donation Form - Debug a Donation Form

Why did you change the name attribute of that input?

Maybe the test shouldn’t test it by name, but if it does, it won’t find it.

1 Like

That is not a valid id.

HTML id global attribute - HTML | MDN

1 Like

i cannot understand code 13 , is there technical errors subscribe

Please create your own topic using the Get Help > Ask for Help buttons so all of your code and a link to the challenge will automatically be included. This helps us help you!

The Get Help button is displayed on the challenge after you have attempted to submit your solution at least three times without success.

Thank you.

Donation Form

Donation Form

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

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

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

<input type="submit" value="Send">

hi @evelynsanyu25 please create your own topic to ask for help

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.