form表单
<form action="" method="" name=""></form>
- form的属性
action提交的地址
method提交的方式:
get默认,明文提交
post密文提交,相对安全
name起个名字
- 文本框
<input type="text" name="username" value="请输入昵称"/>
type="text"文本框
name起个名字
value控件上的文本
- 密码框
<input type="password" name="pwd"/>
type="password"密码框
name起个名字
- 提交按钮
<input type="submit" value="确定"/>
type="submit"提交按钮
value="确定"按钮上的文字
- 重置按钮
<input type="reset" value="清除"/>
type="reset"重置按钮
value="清除"按钮上的文字
- 普通按钮
<input type="button" value=""/>
type="button"普通按钮,没有任何功能
value="" 按钮上的文字