html-表格学习

<DOCTYPE html>
<html>
<head>
<meta http-equiv=" Content-Type" content="text/html; charset=UTF-8"> 
<title>02表单</title>
</head>

<body>

<form action="https://www.baidu.com" method="get">
用户名文本框:
<input type="text">
<br/>

密码输入框:
<input type="password">
<br/>

性别单选框:
<input type="radio" name="xb" id="male">
<label for="male">男</label>
<input type="radio" id="female" checked="checked">
<label for="female">女</label>
<br/>
年龄:
<input type="value">岁
</br>
出生年月:
<input type ="date">
</br>

你的爱好复选框:
<input  type ="checkbox" id ="playfootball" name="hobby">
<label for="playfootball">playfootball</label>
<input type ="checkbox" name ="play" id ="play">
<label for="play" >play</label>
<!-- label的作用可以点击文字进行选中-->
<input type ="checkbox" name ="read" value ="read">read
<!-- 没有label时,只可以点击多选框进行选中-->
<br/>

来至哪里下拉框:
<select name="">
<option value="">上海</option>
                
<option value="">北京</option>
<option value="" selected="selected">深圳</option>
<option value="">广州</option>
    
<option value="">苏州</option>        
</select>
&nbsp; &nbsp;
工作单位下拉框:
<select name ="">
<option value ="">华为</option>
<option value ="">阿里</option>
<option value ="" selected="selected">腾讯</option>
</select>
<br/>

文本域:
<textarea name =""  id=""  cols="20"  rows="10"></textarea>    
<br/> 

按钮:
<input type="button" value="我就是普通按钮">
<br/>

操作按钮:
<input type="submit" value="提交"> <input type="reset" value="重置">
</form>
</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值