html--text field, multi-line text input support

Source: Internet
Author: User

Text input fields are required when users need to enter large pieces of text in the form.

Syntax :

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

1、<textarea>标签是成对出现的,以<textarea>开始,以</textarea>结束。

2cols :多行输入域的列数

3rows :多行输入域的行数

4、在<textarea></textarea>标签之间可以输入默认值

举例

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

Note: The <label> tags in the code are explained in this chapter 5-9.

Display the results in the browser:

Note that these two properties can be replaced by the width and height of the CSS style: col with width, row with height instead. (These two CSS styles will be explained in a later chapter)

Practice:

html--text field, multi-line text input support

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.