<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Donation Form</title>
</head>
<body>
<h1>Donation Form</h1>
<form>
Full Name:
<input type="text" name="name"required><label for="Full Name"id="Full Name">Full Name:</label>
Email Address:
<input type="email" name="email"id="email"required><label for="email">Email Address:</label>
Donation Amount ($):
<input type="number" name="amount"id="number"required><label for="number">Donation Amount ($):</label>
<input type="checkbox" name="newsletter"id="newsletter"><label for="newsletter">Subscribe</label>
Subscribe
<input type="submit"value="Send"id="submit"<label for="submit"></label>
</form>
</body>
</html>
- You should associate every
inputelement with alabelelement using theforandidattributes.
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.
How does the label link to the input ?
there isn’t one, I need to change “Full Name” to “text”?
If you have more than one input with the type text how will it know which one you are talking about?
You should associate every
inputelement with alabelelement using theforandidattributes.
Which attribute uniquely identifies an element on a page so that you can refer to it unambiguously?
id attribute, I think, so I think mine are not matching?
I tried and couldn’t find the solution, still stuck, I changed the id to match for but still haven’t done this correctly
don’t worry, we all were like that,
you should go back to the lecture lesson talk about inputs and labels again
you will notice it when you read it twice specially when you solve the problem youself
good luck ![]()
I corrected my code but now it is saying 5. Your first input should have a required attribute.
ok required attribute is easy to do
you can google anything to get it easy
searching anything will be your friend along the journey of learning
I have everything set now except 5. Your first input should have a required attribute. I think my code does but still says , no
