HTML bootcamp · Lab 35

Required field

easyForm Attributes8 minLesson: Form Attributes

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

QuestionHint and solution stay closed until you open them

Text input name="title" that is required.

Examples

Example 1
Expected
required
Hint
  1. Add the required attribute.
Show correct code

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

<input type="text" name="title" required>
index.htmlLive preview · Check reads the DOM
ResultIdle
Run to see output. Check grades the tests.