Home  >  Article  >  Web Front-end  >  What are the textarea attributes?

What are the textarea attributes?

coldplay.xixi
coldplay.xixiOriginal
2021-03-01 15:34:3017984browse

Textarea attributes include: 1. Accesskey accesses the keyboard shortcut of the element; 2. Class specifies the class name of the element; 3. Contenteditable specifies whether the user is allowed to edit the content; 4. Contextmenu specifies the context menu of the element; 5. The text direction of the content within the dir element.

What are the textarea attributes?

The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer. This method is suitable for all brands of computers.

The textarea attributes are:

<textarea></textarea>The label defines a multi-line text input control.

The text area can hold an unlimited amount of text, and the default font for the text is a fixed-width font (usually Courier).

You can specify the size of the textarea through the cols and rows attributes, but a better way is to use the CSS height and width attributes.

Use "%OD%OA" (carriage return/line feed) to separate lines of text in the text input area; set the line break mode in the text input area through the wrap attribute of the

textarea tags appear in pairs, starting with <textarea></textarea> and ending with ##Define a text area (text-area) (a multi-line text input area). Users can write text in this text area. You can enter an unlimited amount of text in a text area. The default font in the text area is fixed pitch.

The most commonly used attributes are cols and rows, which are used to specify the size of textarea. In addition, there are some other attributes as follows:

What are the textarea attributes?New global attributes in HTML 5

What are the textarea attributes?

Related learning recommendations:

html video tutorial

The above is the detailed content of What are the textarea attributes?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn