html textarea tag
Translation results:
textarea means text area and is a type of html tag.
How to use the textarea tag?
Example of using textarea tag in HTML: <textarea rows="3" cols="20">Fill in the content</textarea>. Function: Define multi-line text input controls. Note: The text area can accommodate an unlimited amount of text, and the size of the textarea can be specified through the cols and rows attributes.
html textarea tagsyntax
Function:Define multi-line text input control.
Note: The text area can accommodate 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 properties, but a better way is to use the CSS height and width properties.
Note: Use "%OD%OA" (carriage return/line feed) to separate lines of text in the text input area. You can set the wrapping mode in the text input area through the wrap attribute of the <textarea> tag.
html textarea tagexample
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <textarea rows="3" cols="20"> 在php中文网,你可以找到你所需要的所有的php教程。 </textarea> </body> </html>
Run Instance»
Click the "Run Instance" button to view the online instance
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <textarea rows="5" cols="20"> php中文网有很多讲师,比如peter_zhu,西门大官人,灭绝师太。 </textarea> </body> </html>
Run instance»
Click the "Run instance" button to view the online instance