A multiline text field
The textarea element provides a way for users to type more than just a single line.
- Provide example text for the user to see when the text area is empty.
- But place any default text within the body of the textarea field.
- The initial height of the text box.
- The initial width of the text box.
- Use this to set an upper threshold on the number of characters the user can enter.
- Use this to set a lower threshold on the number of characters the user must enter. Specify the "required" attribute to enforce this rule.
hardAutomatically insert line breaks so that each line has no more than "cols" number of characters.
softDoes not insert any additional line breaks.
offChanges behaviour to CSS "white-space: pre" so it becomes horizontally scrollable.
trueTurn on spellchecking.
falseTurn off spellchecking.
defaultUse the parent element's spellcheck rule.
- This attribute may be used to declare the input to be part of a form even when it is not directly subordinate to it. Provide the ID of the form.
- The input should be visible, but unchangable. Its value will be included in the submission.
- The input should be visible, but unchangable. Its value will not be included in the submission.
- When present, this field must not be left blank.
- Identifies this input element as the one that should receive keyboard focus when the page is loaded.
onThe browser can assist the user by automatically providing values that were previously used on similar forms.
offThe browser should not provide any automatic assistance.
- See the MDN documentation for more possibilities.