Responsive web development

Hi,

I am working on the “Debug a Donation Form” challenge.

I have added the required attribute to my first input, but the test still says:
“Your first input should have a required attribute.”

I already:

  • Removed all tags

  • Added labels correctly

  • Used id and for attributes

  • Refreshed the page and cleared code

But the error still persists.

Here is my code:

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>



<label for="subscribe">Subscribe</label>

<input type="checkbox" id="subscribe">



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

Can someone please help me understand what is wrong?

Welcome to the forum @lakshmi_sowjanya.15 ,

You seem to have changed the starting code here. Please reset this challenge and try again. This time do not change the starting code in areas where you were not asked to make changes.


In the future, if you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.


Happy coding!