Textarea tag in HTML

Textarea tag in HTML

<textarea></textarea> is used to create a text box that can input multiple lines. This tag pair is used between the <form></form> tag pair. <textarea> has the following attributes:

(1) onchange specifies the function to be called when the control changes
(2) onfocus is the function to be executed when the control receives the focus
(3) onblur is the function to be executed when the control loses focus
(4) onselect is the function to be executed when the control content is selected
(5)name This text block is used for identification and will be passed to CGI.
(6)cols is the width of the text block.
(7)rows is the number of columns in this text block, that is, its height.
(8) The wrap attribute defines how the input content is displayed when it is larger than the text area. The possible values ​​are as follows:

*The default value is automatic text wrap; when the input exceeds the right edge of the text field, it will automatically go to the next line, and there will be no line break at the place where the data is automatically wrapped when it is submitted for processing;
*Off, used to avoid text wrapping. When the input content exceeds the right boundary of the text field, the text will scroll to the left;
*Virtual, allows text to wrap automatically. When the input exceeds the right edge of the text field, it will automatically go to the next line, and there will be no line break where the data is automatically wrapped when it is submitted for processing;
*Physical, wrap the text, and when the data is submitted for processing, the line breaks will also be submitted for processing.

Here the columns and rows are in units of characters.


Copy code
The code is as follows:

<html>
<head>
<title>Multi-line text box</title>
</head>
<body>
<form action="" method="post">
<p>Your opinion is important to me:
<textarea name="yj" clos="20" rows="5">
Please enter your comments in this area
</textarea>
</form>
</body>
</html>

<<:  Introduction to local components in Vue

>>:  The three new indexes added in MySQL 8 are hidden, descending, and functions

Recommend

Design perspective technology is an important capital of design ability

A design soldier asked: "Can I just do pure ...

Mysql table creation foreign key error solution

Database Table A: CREATE TABLE task_desc_tab ( id...

mysql-8.0.17-winx64 deployment method

1. Download mysql-8.0.17-winx64 from the official...

Summary of problems encountered when installing docker on win10 home version

Docker download address: http://get.daocloud.io/#...

Jenkins packaging microservices to build Docker images and run them

Table of contents Environment Preparation start 1...

Discussion on Web Imitation and Plagiarism

A few months after entering the industry in 2005, ...

Shell script settings to prevent brute force ssh

The shell script sets access control, and the IP ...

Interpretation of the module for load balancing using nginx

Table of contents Two modules for using nginx for...

When you enter a URL, what exactly happens in the background?

As a software developer, you must have a complete...

CentOS 7 set grub password and single user login example code

There are significant differences between centos7...

How to use the Fuser command in Linux system

What is Fuser Command? The fuser command is a ver...

A detailed introduction to Linux system operation levels

Table of contents 1. Introduction to Linux system...

Summary of methods to clear cache in Linux system

1) Introduction to cache mechanism In the Linux s...

How to use the dig/nslookup command to view DNS resolution steps

dig - DNS lookup utility When a domain name acces...