HTML: Textarea
We often want to give the user the ability to type not just one line of text, but several lines in one place. For example, if a user wants to leave a review. The <textarea> element is used for this, allowing you to enter multiple lines of text.

<form>
<textarea></textarea>
</form>Note that <textarea> is a paired tag. This means that you can put default text in so that the user can understand what he needs to enter more quickly.
The default <textarea> height and width depend on the browser settings. This means that the height and width may vary from browser to browser. In order to set the same value, the rows and cols attributes are used, denoting the number of rows and columns respectively.
<form>
<textarea rows="5" cols="30">textarea with 5 rows and 30 columns</textarea>
</form>
Instructions
Create a form with a data handler file at /people. Inside the form, create a field for multiline input. Number of input rows: 4. Number of columns: 30
If you've reached a deadlock it's time to ask your question in the «Discussions». How ask a question correctly:
- Be sure to attach the test output, without it it's almost impossible to figure out what went wrong, even if you show your code. It's complicated for developers to execute code in their heads, but having a mistake before their eyes most probably will be helpful.
Your exercise will be checked with these tests:
const { test } = require('tests');
test(({ query, expect }) => {
const form = query(document, 'form');
const textarea = form.querySelector('textarea');
expect(form).to.have.attr('action', '/people');
expect(textarea).to.have.attr('rows', '4');
expect(textarea).to.have.attr('cols', '30');
});Teacher's solution will be available in:
20:00
