html基础

1 表格标签

<!DOCTYPE html>
<html>
   <head>
    <title> Dhcc</title>
    <meta http-equiv="Content-Type"  content="text/html;charsrt=utf-8"/>

    <meta name="keywords" content="DHCC"/>
    <meta name="description" content="好公司"/>
   </head>

	      <body>
		   <table width="50%" height="200px" border="1" bgcolor="#33ff55" cellspacing="0" cellpadding="0">
		      <caption>我喜欢的歌曲</caption>
			  <thead>
			    <tr>
				 <th>
				    歌名
				  </th>
				  <th>
				    作者
				  </th>
				</tr>
			  </thead>
			  <tbody>
			    <tr>
				    <td>光辉岁月</td>
					<td>Beyond</td>
				  </tr>
                <tr>
				    <td>红的</td>
					<td>Be</td>
				  </tr>
				   <tr>
				    <td>再婚</td>
					<td>邓丽君</td>
				  </tr>
				   <tr>
				    <td>爱安女友回</td>
					<td rowspan="2">hah </td>
				  </tr>
				   <tr>
				    <td>youshui</td>
					
				 <tfoot>
				  <tr><td colspan="2"> 现总计五首</td></tr>
				 </tfoot>
			  </tbody>
		   </table>
		   </body>
	
 
 </html>

 

2 form标签

 

 

<!DOCTYPE html>
<html>
   <body>
<form name ="name " method ="post" action="http://www.baidu.com.cn">
 单行文本框<input type ="text " name ="username " id ="username" maxlength="10" readonly="readonly"/></br> <label for="password">
密码框</label><input type ="password " name ="password " id ="password" siz ="5"/></br>
 隐藏域<input type ="hidden " name ="hidden " id ="hidden"/></br>
 单选按钮<input type ="radio" name ="sex" id ="male"checked="checked"/>男
			            <input type ="radio" name ="sex" id ="female"/>女</br>
复选框</br><input type ="checkbox" name ="hobby" value="1" id ="footbal"disabled="disabled"/>足球</br>
                       <input type ="checkbox" name ="hobby" value="2" id ="footbal"checked="checked"/>蓝球	</br>
                       <input type ="checkbox" name ="hobby" value="3" id ="footbal"/>网球</br>	
				图像域<input type ="image" src="C:\Users\Administrator\Desktop\tupian.jpg" width ="100px" height ="40px"/>	</br>	
                文件上传域<input  type="file" name ="file"/></br>
                  提交按钮<input  type="submit" name ="submit" value ="提交按钮"/>	</br>
                  重置按钮<input  type="reset" name ="reset " value ="重置按钮"/></br>	
                  普通按钮<input  type="button" name ="button" value ="普通按钮"/>	</br>
            button提交按钮<button   type="submit"name ="submit2" >提交按钮></button>	</br>
                  button重置按钮<button  type="reset" name ="reset2" <b>重置按钮</b>></button>	</br>
				  button普通按钮<button   type="button"name ="button2" disabled="disabled"<i>普通按钮"/></button>	</br>
				  
				  
				  下拉菜单</br>
				  <select name ="city" id="city">
				    <option value ="bejing"> 北京</option>
					<option selected="selected" value ="shanghai"> 上海</option>
					<option value ="nanjing"> 南京</option>
					<option value ="tianjin"> 天津</option>
					</select><br/>
                  列表框</br>
				  <select name ="city" id="city2" size="3"multiple="multiple">
				    <option value ="bejing"> 北京</option>
					<option selected="selected" value ="shanghai"> 上海</option>
					<option value ="nanjing"> 南京</option>
					<option value ="tianjin"> 天津</option>
					</select><br/>
					选项组列表框</br>
				  <select name ="city" id="city" size="6">
				   <optgroup label="一线城市">
					<option value ="bejing"> 北京</option>
					<option selected="selected" value ="shanghai"> 上海</option>
					</optgroup>
					
					 <optgroup label="二线城市">
					<option value ="nanjing"> 南京</option>
					<option value ="tianjin"> 天津</option>
					</optgroup>
					</select><br/>
					多行文本框<br/>
					<textarea name ="content" cols ="28" rows="4">
					  1 haihfdkfk家得福
					  2 kfjiasd
					  flkjadhbjfklv
					  </textarea>

		   </form>				  
		   </body>
	
 
 </html>

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值