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

What is the use of textarea tag

王林
Release: 2020-11-25 10:36:47
Original
9094 people have browsed it

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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template