2.表单标签
1.表单域<form>:表单内的信息提交给服务器
表单标签<input/> 文本标签 <select></select>((<option></option>),选项多选) <textarea></textarea>(文本域,可以写很多字)
基本表单格式:<input type="">,(type是属性)
(text) 账号:<input type="text" />(”文本输入,text里面只能写20个字“,常用于登录qq 账号类:输入内容可见)
(password)密码:<input type="password" />(常用于登录密码类:输入内容不可见)
(radio) 性别:<input type="rsdio" name="sex" />男
<input type="rsdio" name="sex" />女(常用于多选一,单项选择 ,radio实现多选一 name必须一致, sex可更改)
(checkbox)爱好:<input type="checkbox" />看电影
<input type="checkbox" />刷视频
<input type="checkbox" />打篮球(常用于多项选择,)
(button) 按钮:<input type="button" />(是一个获取验证码类按钮,低级提交)
(reset) 重置:<input type="reset" />(用于写错了重新输入类)
(submit) 提交:<input type="submit" />(提交所有内容到服务器,高级提交)
基本表单格式:(select></select>(下拉列表,用于挑选其中之一)
(select>
<option>第一</option>
<option>第二</option>
<option>第三</option>
</select>
(<option></option>列表里面的列表)
基本表单格式:<textarea></textarea>(文本域,可以写很多字,常用于简介类)
2020-11-09表单form标签
最新推荐文章于 2022-09-29 14:53:20 发布