1、 标签规定了用户可以在其中输入数据的输入字段。
2、输入类型是由 type 属性定义。
<input type="类型" name="输入框名称" size="框的大小" maxlength="字符的最大数" value="框的默认值"/>
-
姓:
<
input
type
=
"text" name
=
"yourname"
>
<br
>
-
名:
<
input
type
=
"text" name
=
"myname"
>
-
你也可以加maxlength
=
"8",意思是输入的密码长度只能
8个
-
密码:
<
input
type
=
"password"
>
-
<
input
type
=
"radio"
value
=
"A" name
=
"nn"
>A
<br
>
-
<
input
type
=
"radio"
value
=
"B" name
=
"nn"
>B
<br
>
-
<
input
type
=
"radio"
value
=
"C" name
=
"nn"
>C
<br
>
-
<
input
type
=
"radio"
value
=
"D" name
=
"nn"
>D
<br
>
-
<
input
type
=
"checkbox"
value
=
"A" name
=
"nn"
>A
-
<
input
type
=
"checkbox"
value
=
"B" name
=
"nn"
>B
-
<
input
type
=
"checkbox"
value
=
"C" name
=
"nn"
>C
-
<
input
type
=
"checkbox"
value
=
"D" name
=
"nn"
>D
-
<form
>
-
Username:
<
input
type
=
"text" name
=
"user"
>
-
<
input
type
=
"submit"
value
=
"Submit"
>
-
<
/form
>
-
<form
>
-
姓名:
<
input
type
=
"text"
>
-
<
input
type
=
"reset"
>
-
<
/form
>