Home >Web Front-end >HTML Tutorial >Textbox textarea tag in HTML
textarea is used to create a text box that can input multiple lines. This flag pair is used between the form flag pair. It also supports the processing of some events.
4750256ae76b6b9d804861d8f69e79d340587128eee8df8f03d0b607fe983014 To create a text box that can input multiple lines, this flag pair is used between the ff9c23ada1bcecdd1a0fb5d5a0f18437f5a47148e367a6035fd7a2faa965022e flag pair. 4750256ae76b6b9d804861d8f69e79d3 has the following attributes:
(1) onchange specifies the function to be called when the control changes
(2) onfocus The function to be executed when the control accepts focus
(3) onblur Function to be executed when the control loses focus
(4) onselect Function to be executed when the content of the control is selected
(5) name The name of the text block is used for identification purposes and will be passed to CGI.
(6)colsThe width of this text block.
(7)rows The number of columns of 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 field. The optional values are as follows:
*The default value is that the text automatically wraps; when the input content exceeds the right boundary of the text field, it will automatically Go to the next line, and no line breaks will appear where the data is automatically wrapped when submitted for processing;
*Off is used to avoid text wrapping. When the input content exceeds the right boundary of the text field, the text will move to the left Scrolling;
*Virtual, allows text to wrap automatically. When the input content exceeds the right boundary of the text field, it will automatically go to the next line, and there will be no line breaks where the data will automatically wrap when it is submitted for processing;
*Physical, let the text wrap when the data is submitted for processing Newline characters will also be submitted for processing.
The columns and rows here are measured in characters.
The code is as follows:
<html> <head> <title>多行的文本框</title> </head> <body> <form action="" method="post"> <p>您的意见对我很重要: <textarea name="yj" clos="20" rows="5"> 请将意见输入此区域 </textarea> </form> </body> </html>
For more articles related to the textarea tag of the text box in HTML, please pay attention to the PHP Chinese website!