Hi guys, I am trying to do this Survey Form test, but one code won’t pass at all no matter what I write it’s about label with an ID name-label. I type my code this way
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
This is everything I’ve done so far…I’ve even included an INPUT element around the first LABEL and now the other two show as correct, just the one with an INPUT element is not
<link rel="stylesheet" href="styles.css">
<h1 id="title">Survey</h1>
<p id="description">Please tell us about yourself<p/>
<form id="survey-form">
<select id="dropdown">
<label><input id="name-label">Name</input></label>
<label id="email-label">Email</label>
<label id="number-label">Age</label>
<option type="radio" name="eye-color">The color of your eyes</option>
<option type="radio" name="hair-color">The color of your hair</option>
<label>Name:<input id="name" required="" type="text" placeholder="Enter your name here"></input></label>
<label>Email:
<input type="email" id="email" required="" placeholder="Enter your email here"></input></label>
<label>Age:
<input type="number" id="number" min="13" max="120" placeholder="Enter your age here"></input>
</label>
<fieldset>
<label><input type="radio" name="blue-eyes" value="eyes">Blue</input></label>
<label><input type="radio" name="blue-eyes" value="eyes">Green</input></label>
<label><input type="radio" name="brown-eyes" value="eyes">Brown</input></label>
<label><input type="radio" name="brown-eyes" value="eyes">Brown</input></label>
<input type="checkbox" required="" value="Age">I am over the age of 13</input>
<input type="checkbox" required="" value="Terms and conditions">I accept all Terms and Conditions</input>
<textarea>Tell us more about yourself</textarea>
<input type="submit" id="submit" value="Submit"</input>
</form>
Oh woow! All of these ELEMENTARY things are missing in my code! I was blindly following the instructions which didn’t says to use DOCTYPE and other things…I should have done that alone, by myself, without being told to do it. Thank you so much. I’ll go ahead and insert these, and then maybe the label element will work as well