Text content". This label defines a multi-line text input control. The text area can accommodate an unlimited amount of text. The default font of the text is a monospace font."/> Text content". This label defines a multi-line text input control. The text area can accommodate an unlimited amount of text. The default font of the text is a monospace font.">

Home  >  Article  >  Web Front-end  >  How to write css text field

How to write css text field

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-07-23 10:47:503642browse

In CSS, the syntax format of the text area is "". This label defines a multi-line text input control. The text area can accommodate an unlimited amount of text. The default font of the text is a monospace font.

How to write css text field

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

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.

Note: Use "%OD%OA" (carriage return/line feed) to separate lines of text in the text input area.

Tip: You can set the line wrapping mode in the text input area through the wrap attribute of the

Example

Effect:

How to write css text field

Recommended learning:css video tutorial

The above is the detailed content of How to write css text field. 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