1、Form标签语法1、<form action="服务器文件" method="get"> </form> //method="get" 是通过URL传内容与参数,通过网址URL能看见自己填写内容提交处理2、<form action="服务器文件" method="post"> </form> //method="post">是通过类似缓存传填写内容与参数,不能看到form表单填写内容提交内容注:form表单标签内放输入框input、单选、多选、select下拉列表菜单与跳转菜单、提交按钮等标签内容。
2、type:type=text 输入文本 | type=password输入密码 | type=file上传文件 | type=image上传文件 | type=button 按钮| type=checkbox多选框 | type=radio 单选框(name相同)| type=submit 提交(确定) | type=reset 重置参数值:name:输入框名称 | value:输入框中默认值 | size:输入框的长度大小 | maxlength:输入框中允许输入字符的最大数。
3、<form> <p> <label for="username">账户:</l锾攒揉敫abel> <input type="text" name="账户" value="" /> <label for="pass"><br> 密码:</label> <input type="password" name="密码" value="" /> </p> <p> <input type="submit" value="确定" name="submit" /> <input type="reset" value="注册" name="reset" /> </p> <p> </p></form>