Tell us what’s happening:
Why is my code not satisfying step 11? I have already attempted to switch the placement of the labels, but it did not fix it.
Step 11: “You should associate every input element with a label element using the for and id attributes.”
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="name">Full Name:</label>
<input type="text" name="name" id="name" required>
<label for="email">Email Address:</label>
<input type="email" name="email" id="email" required>
<label for "amount">Donation Amount ($):</label>
<input type="number" name="amount" id="amount" required>
<label for="newsletter">Subscribe</label>
<input type="checkbox" name="newsletter" id="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/145.0.0.0 Safari/537.36
Challenge Information:
Debug a Donation Form - Debug a Donation Form