Step 21
Keeping in mind best-practices for form inputs, give each
input
an appropriatetype
andname
attribute. Then, give the firstinput
aplaceholder
attribute.
I don’t see a “name” attribute in the input type list on w3. HTML Input Types
So I assume its type=text on the input but that is not passing.
Hint you should give the first
input
an appropriatename
attribute.
Your code so far
/* file: index.html */
<!DOCTYPE html>
<html lang="en">
<section role="region" aria-labelledby="student-info">
<h2 id="student-info">Student Info</h2>
<div class="info">
<label for="student-name">Name:</label>
<input type="text" id="student-name" placeholder="student-name" />
</div>
<div class="info">
<label for="student-email">Email:</label>
<input type="email" id="student-email" />
</div>
<div class="info">
<label for="birth-date">D.O.B.:</label>
<input type="date" id="birth-date" />
</div>
</section>
<section role="region" aria-labelledby="html-questions">
<h2 id="html-questions">HTML</h2>
</section>
<section role="region" aria-labelledby="css-questions">
<h2 id="css-questions">CSS</h2>
</section>
</form>
</main>
</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/103.0.0.0 Safari/537.36
Challenge: Learn Accessibility by Building a Quiz - Step 21
Link to the challenge: