Tell us what’s happening:
The test keeps telling me: “Your first input element does not have a proper required attribute. Add the boolean required attribute (without a value) to that input and try again.”
I’ve checked my code and I do have required on the first input without quotes or an equals sign. I’ve tried retyping it, refreshing the page, and using incognito mode, but nothing works.
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="fullname" id="fullname" required>
<label for="email">Email Address:</label>
<input type="email" name="email" id="email" required><br>
<label for="donationamount">Donation Amount ($):</label>
<input type="number" name="donationamount" id="donationamount" required><br>
<label for="subscribe">Subscribe</label>
<input type="checkbox" name="newsletter" id="subscribe"><br>
<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/147.0.0.0 Safari/537.36
Challenge Information:
Debug a Donation Form - Debug a Donation Form