HTML exercise: textarea and datalist — What kind of form field does <textarea> create?
The exercise
What kind of form field does <textarea> create?
1<form action="/contact" method="post">
2 <label for="msg">Message</label>
3 <textarea id="msg" name="msg"
4 rows="4"></textarea>
5</form>
Solution
Answer: A multi-line text box
The <textarea> element creates a multi-line text box where visitors can type longer messages. Here rows="4" sets its visible height to about four lines of text.