HTML bootcamp · Lab 50

Label for id

mediumForms10 minLesson: Forms

Read the question, write HTML on the right, then Preview or Check.

QuestionHint and solution stay closed until you open them

Label for="name" text Name, and input id="name" name="name".

Examples

Example 1
Expected
label for
Hint
  1. for must match id.
Show correct code

Peek only after you have tried. You can still Check your own version.

<label for="name">Name</label>
<input id="name" name="name" type="text">
index.htmlLive preview · Check reads the DOM
ResultIdle
Run to see output. Check grades the tests.