Tell us what’s happening:
Hi, Debugging a donation form, failing because the first three inputs should be req. and the fourth should not…? Thanks for help:)
Full Name:
<label for="email">Email Address:</label>
<input type="email" id="email" required/>
<label for="amount">Donation Amount ($):</label>
<input type="number" id="amount" required/>
<input type="checkbox" id="newsletter"/>
<label for="newsletter">Subscribe</label>
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 id="donationform">
<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/>
<input type="checkbox" id="newsletter"/>
<label for="newsletter">Subscribe</label>
<input type="submit" value="Send">
</form>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Challenge Information:
Debug a Donation Form - Debug a Donation Form