HTML4 HTML5
Defines multi-line text input field in forms[cite: 3]. Used for longer text like comments or messages[cite: 3].
Allows newline characters[cite: 3]. Both tags mandatory[cite: 3].
Attributes:
name – field name[cite: 3].rows – visible height in lines[cite: 3].cols – visible width in characters[cite: 3].placeholder – hint text[cite: 3].maxlength – max character count[cite: 3].required – mandatory field[cite: 3].readonly – non-editable[cite: 3].disabled – disables field[cite: 3].Code:
The browser will interpret this code as follows: