Home > Article > Web Front-end > What is the use of textarea tag
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.
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:
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!