<textarea></textarea> is used to create a text box that can enter multiple lines. This flag pair is used between <form></form> flag pairs. <textarea> has the following properties:
(1) onchange specifies the function to be called when the control changes
(2) The function to be executed when the control accepts focus
(3) Function to execute onblur when the control loses focus
(4) onselect function to be executed when the control content is selected
(5) The name of the text block is used for identification and will be transmitted to CGI.
(6) The width of the text block of cols.
(7) The number of columns in the text block of rows, that is, its height.
(8) The wrap attribute defines the display method when the input content is larger than the text field. The optional values are as follows:
*The default value is text line wrapping; 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 newlines in the place where the data is automatically wrapped when it is submitted;
*Off, used to avoid text line breaks. When the input content exceeds the right boundary of the text field, the text will scroll to the left;
*Virtual, allows text wrapping automatically. When the input content exceeds the right boundary of the text field, it will automatically go to the next line, and the newline character will not appear where the data is automatically broken when it is submitted;
*Physical, let text line breaks, and when data is submitted, line breaks will also be submitted together for processing.
Here columns and rows are in units of characters.
Copy the code