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.
,
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: