Displaying and editing text (HTML)
Single-line text controls A single-line text input control lets users enter one line of text into your application. It includes a clear button so users can quickly remove the contents they've typed, and a password reveal button if it's a password input control.
Multi-line text controls A multi-line text control lets users enter larger amounts of text. It includes a panning indicator, or scrollbar, when the text gets longer than the row height of the box.
There are two kinds of multi-line text boxes.
- Plain text box supports strings of text where only the characters of the string are encoded and represented in the box. To create a plain text box, you use the textarea element.
- Rich text box supports strings of text where each character is also associated with stylistic info, such as bold, underline, italics, superscript, and so forth. To create a rich text box, you set the contentEditable property of the elements that you want to edit.