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="行數(shù)" cols="列數(shù)">文本</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>聯(lián)系我們</label>
<textarea cols="50" rows="10" >在這里輸入內(nèi)容...</textarea>
</form>
Display the results in the browser: