Debug a Donation Form - Debug a Donation Form

Tell us what’s happening:

No matter what i do It wont let me pass this form

I keep getting an error saying my checkbox shouldn’t have a “required” but it doesnt!!! im loosing my F-ing mind trying to pass this damn thing and I’ve tried revising it in everyway i could possibly imagine

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

    <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/142.0.0.0 Safari/537.36

Challenge Information:

Debug a Donation Form - Debug a Donation Form

Welcome back to the forum @mrandrewguy311

11. You should associate every input element with a label element using the for and id attributes.

Review how to associate label and input elements.

Learning to program is tough. Every now and then take breaks. In the beginning things may not much sense. Spend time reviewing what you have already learnt. It will make recalling topics and concepts much easier.

Happy coding

part of the issue is that you have changed the name property on various elements, was that needed to fix the bugs in this code?

hey i am facing the same issue as the og poster mentioned. tell me whats wrong ughghh.

its mentioned:

5. Your first input should have a required attribute.
7. Your second input should have a required attribute.
9. Your third input should have a required attribute.
12. Your input for the email address should be of type email.
13. Your checkbox input should not have a required attribute.
Donation Form

Donation Form

<Label for ="name">Full Name:</label>
<input type="text" id="name"required >
<Label for ="email" >Email Address:</label>
<input type="email" id="email"required>
<Label for ="amount" >Donation Amount ($):</label>
<input type="number" id="amount"required>

Subscribe

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

Welcome to the forum @maryam100 !

Please create your own topic when you have specific questions about your own challenge code. Only respond to another thread when you want to provide help to the original poster of the other thread or have follow up questions concerning other replies given to the original poster.

The easiest way to create a topic for help with your own solution is to click the Ask for Help button located on each challenge. This will automatically import your code in a readable format and pull in the challenge url while still allowing you to ask any question about the challenge or your code.

Thank you.