HTML元素 - input type=text

元素定义

创建一个单行的文本输入控件。

Creates a single-line text entry control.

元素说明

SIZE 属性用来设置 INPUT type=text 元素中可见字符的个数。而 MAXLENGTH 属性用来设置可输入的字符个数。

此元素在 Internet Explorer 3.0 及以上版本的 HTML 和脚本中可用。

此元素是一个内嵌元素。

此元素不需要关闭标签。

The SIZE attribute sets the number of visible characters in the INPUT type=text element. The MAXLENGTH attribute sets the maximum number of characters that can be entered.

The INPUT type=text element is available in HTML and script as of Internet Explorer 3.0.

This element is an inline element.

This element does not require a closing tag.

元素示例代码

<input type="text" name="yourname" size = "15" >

演示示例:单行文本输入框

另见

input, textArea

相关教程和示例代码

HTML表单

 

 

 

www.admin5.com/html

站长网 站长学院网页教程与代码

www.admin5.net

免费收录站长网站

www.admin5.com

站长网信息中心

www.admin5.com/idc

站长网 idc频道