HTML bootcamp · Lab 17

A message box

easyForm Elements8 minLesson: Form Elements

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

QuestionHint and solution stay closed until you open them

Add a <label> "Message" with a <textarea> named message for multi-line input.

Use <textarea> (not <input>) when the visitor needs to type more than one line.

Output. A label with a textarea named message.

Examples

Example 1
Expected
<label>Message <textarea name="message"></textarea></label>
Hint
  1. <textarea name="message"></textarea> — note it has a closing tag, unlike input.
  2. Put it inside a <label> that reads Message.
Show correct code

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

<label>Message
  <textarea name="message" rows="4"></textarea>
</label>
index.htmlLive preview · Check reads the DOM
ResultIdle
Run to see output. Check grades the tests.