HTML标记集

<head>
    <title>页面标题</title>
</head>

<body></body>页面主体

<h1></h1>标题

<p></p>段落

<em></em>强调标记

<a href="http://www.cnblogs.com/liumeibiao/">超链接</a>

&copy;©

&reg; ®

<i></i>斜体字

<b></b>粗体

<u></u>下划线

<sup></sup>上标字

<sub></sub>下标字

<strike></strike>中划线

<strong></strong>粗体强调

<li></li>列表项

<ol></ol>有序列表

<ul></ul>无序列表

<td rowspan="2"></td>合并两行

<td colspan="2"></td>合并两列

&lt;1&gt; <1>左括号1右括号

&nbsp; 空格

<tr></tr> 行 r:row

<td></td> 列 d:data

<th></th> 行,只能存放于放于<thead></thead>中 h:head

<table border="1"></table> 表格,边框宽度设为1

<thead></thead> 表格头部描述,列名

<tfoot></tfoot> 表格尾部描述

<tbody></tbody> 表格数据部分

<abbr title="最有价值的人">MVP</abbr> 弹出提示解释框,此例中解释MVP为“最有价值的人”

<br /> 换行

<hr /> 横线

<img />图片

<fieldset></fieldset> 框

<legend></legend> 在<fieldset></fieldset>中的标签

<label></label> 标签

<input type="text" id="UserName" name="UserName" /> 文本框

<input type="button" id="CheckName" name="CheckName" value="按钮" /> 按钮

<input type="radio" id="RdoMale" checked="checked" name="Sex" /><label for="RdoMale">男</label>单选框,其中<label for="RdoFemale">男</label>作用:当鼠标点击“男”字时,自动选择了id为RdoMale的单选框
<input type="radio" id="RdoFemale" name="Sex" /><label for="RdoFemale">女</label>  单选框,其中<label for="RdoFemale">女</label>作用:当鼠标点击“女”字时,自动选择了id为RdoFemale的单选框

<input type="password" id="Password" name="Password" /> 密码框

<input type="checkbox" id="Hobby" name="Football" />足球
<input type="checkbox" id="Hobby" name="PingPong" />乒乓球
<input type="checkbox" id="Hobby" name="Song" />唱歌 复选框

<input type="submit" value="提交" name="Sub" /> 提交按钮

<input type="text" value="abc" onfocus="this.value=''" /> 文本框初始值为“abc”,当光标点击时,文本框清空

<input type="button" name="btn" value="按钮" onclick="alert('看见了吗?')" /> 点击按钮时,弹出框

<input type="reset" value="重置" /> 重置按钮

<select>

  <option>选择</option>

</select>

posted @ 2010-12-03 21:57  liumeibiao  阅读(178)  评论(0编辑  收藏  举报