Text field, sup...LOGIN

Text field, supports multi-line text input

When users need to enter a large section of text in a form, a text input field needs to be used.

Grammar:

<textarea  rows="行数" cols="列数">文本</textarea>

1, <textarea> tags appear in pairs, starting with <textarea>, End with </textarea>.

2, cols: The number of columns of the multi-line input field.

3, rows: The number of rows in the multi-line input field.

##4

, default value can be entered between the <textarea></textarea> tags.

Example:

<form  method="post" action="save.php">
   <label>联系我们</label>
   <textarea cols="50" rows="10" >在这里输入内容...</textarea>
</form>
Display the results in the browser:

Note that these two properties can be replaced by width and height in CSS style: col is replaced by width and row is replaced by height.

Next Section

​<form method="post" action="save.php"> <label>联系我们</label> <textarea cols="50" rows="10" >在这里输入内容...</textarea> </form>
submitReset Code
ChapterCourseware