Home  >  Article  >  Web Front-end  >  What is the use of textarea tag

What is the use of textarea tag

王林
王林Original
2020-11-25 10:36:479027browse

The role of the textarea tag: used to define multi-line text input controls. An unlimited amount of text can be accommodated in this control, and the default font for text is a monospaced font. We can specify the size of the textarea through the cols and rows attributes.

What is the use of textarea tag

Environment:

This article applies to all brands of computers.

(Learning video sharing: html video tutorial)

Tag introduction:

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.

Attribute value:

What is the use of textarea tag

Example:

<textarea rows="3" cols="20">
在php中文网,你可以找到你所需要的所有的网站建设教程。
</textarea>

Related recommendations: html tutorial

The above is the detailed content of What is the use of textarea tag. 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