Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

What is the <textarea> tag used for?
A. Multi-line text input
B. Single-line text input
C. Password input
D. File upload
Direction: Choose the correct option

Q2.

<textarea rows="4" cols="50">
Default text here
</textarea>
What do rows and cols attributes specify?
A. Number of rows and columns in a table
B. Pixel dimensions
C. Row and column span
D. Visible height (rows) and width (cols) in characters
Direction: Choose the correct option

Q3.

How do you set default text in a textarea?
A. Use placeholder attribute
B. Use default attribute
C. Put text between opening and closing tags
D. Use value attribute
Direction: Choose the correct option

Q4.

Which attribute prevents resizing of a textarea?
A. no-resize
B. CSS resize: none
C. lock-resize
D. fixed-size
Direction: Choose the correct option

Q5.

What is the maxlength attribute in textarea used for?
A. Maximum number of rows
B. Limits the maximum number of characters
C. Maximum width
D. Maximum height