form表单的简单实用

在HTML中如果使用表单情况,
需要加上括起来,以下是配合一些其他标签来更美观的完成表单。
<label>加强鼠标点击范围,实用案例:<label for="name">姓名:></label><input type="text" id="name">;<label for="password">密码:</label><input type="text" id="password">。
*单选表单
*<span>性别:</span><input type="radio" name="sex">男<input type="radio" name="sex">女 多选表单<span>爱好:</span><input type="checkbox" name="hobby">抽烟 <input type="checkbox" name="hobby">喝酒 <input type="checkbox" name="hobby">烫头
*选择表单

*<span>你的国籍:</span>
<select>
<option>中国</option>
<option>日本</option>
<option>泰国</option>
</select>
在某个选择的情况下选择表单(<label>的另一个作用>
<select>
<optgroup label="亚洲">
<option>中国</option>
<option>日本</option>
<option>越南</option>
</optgroup>
</select>

文本框表单

<textarea name="" id="" cols="30" rows="10">
</textarea>

按钮带字

<input type="button" value="登录">
<input type="reset" value="重置">
<input type="submint" value="提交">
<button>注册</button>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值