Question 1
What is the main purpose of the name attribute in a textarea element?
To set the default text inside the textarea
To specify the width of the textarea
To identify the textarea for form submission
To style the textarea
Question 2
Which of the following is true about the rows attribute of textarea?
It sets the width of the textarea
It sets the number of visible text lines
It defines the name of the textarea
It makes the textarea read-only
Question 3
Which attribute controls the horizontal width of a textarea in terms of characters displayed per line?
cols
rows
width
size
Question 4
Where is the default text placed in a textarea element?
In the placeholder attribute only
Between the opening and closing <textarea> tags
In the value attribute
In the name attribute
Question 5
Why should the name attribute be unique within a form?
To prevent JavaScript errors
To ensure each form field can be individually identified
To make the textarea larger
To change the font style
Question 6
Which of the following correctly defines a textarea with name userFeedback, 5 rows, and 40 columns?
<textarea name="userFeedback" rows="5" cols="40"></textarea>
<textarea name="userFeedback" width="5" height="40"></textarea>
<textarea id="userFeedback" rows="5" cols="40"></textarea>
<textarea value="userFeedback" rows="5" cols="40"></textarea>
There are 6 questions to complete.