Add a textarea named message.
Acceptance criteria
- 1.Add a textarea named message.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <textarea> Tag chapter. 5 of them ask you to build something small from scratch; 5 give you code that is already broken and ask you to work out why. Set aside about 90 minutes for the whole set, though you can do them in any order.
Nothing here is marked by a person. When you press Submit, the editor checks your code against the points listed under each task and tells you straight away what passed and what didn't (you need a free account to submit). If you get stuck, there are hints, and a worked solution once you've had a go. The first 2 tasks are free; the rest are part of the practice plan.
If it's been a while since you read the chapter, here is how it starts: “The tag is used to create a multi-line text input field in a form. Unlike the field, which is single-line, allows users to enter large blocks of text , like comments, feedback, or messages.” .
1.Add a message boxexercise · easy · 10 min
Add a textarea named message.
Passes when: Add a textarea named message.
2.Set its sizeexercise · easy · 10 min · practice plan
Give the textarea four rows.
Passes when: Give the textarea four rows.
3.Add a placeholderexercise · easy · 10 min · practice plan
Show a hint inside the box.
Passes when: Show a hint inside the box.
4.Label the boxexercise · easy · 10 min · practice plan
Tie a label to the textarea.
Passes when: Tie a label to the textarea.
5.A message field in a formexercise · medium · 10 min · practice plan
Put a labelled, required textarea inside a form.
Passes when: Put a labelled, required textarea inside a form.
6.Fix the single-line input used for a messagebug fix · easy · 8 min
Long text needs a textarea.
Passes when: Long text needs a textarea.
7.Fix the size set with the wrong attributebug fix · easy · 8 min · practice plan
Height in lines is the rows attribute.
Passes when: Height in lines is the rows attribute.
8.Fix the hint written inside the boxbug fix · easy · 8 min · practice plan
Text between the tags becomes the value, not a hint.
Passes when: Text between the tags becomes the value, not a hint.
9.Fix the label with no targetbug fix · easy · 8 min · practice plan
The label must point at the textarea's id.
Passes when: The label must point at the textarea's id.
10.Fix the optional messagebug fix · easy · 8 min · practice plan
The message is meant to be required.
Passes when: The message is meant to be required.
Between them these tasks cover Multi-line input, rows and cols and Labels.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.