HTML
#All browsers support the
Definition and usage
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.
Note: Use "%OD%OA" (carriage return/line feed) to separate lines of text in the text input area.
Tips: You can set the line wrapping mode in the text input area through the wrap attribute of the
Example<textarea rows="3" cols="20"> 在php中文网,你可以找到你所需要的所有的网站建设教程。 </textarea>
##
The above is the detailed content of How to enter multiple lines of text in HTML. For more information, please follow other related articles on the PHP Chinese website!