常用的html标签

<p>段落

<h2-6>标题1-6

<strong>强调斜体

<em>强调加粗

<q>简短文本的引用,为文本自动加如双引号

<blockquote>长文本的引用,文本居中,左右缩进

<br />换行

<hr>水平横线

<address>地址、邮箱地址等,斜体展示

<code>单行代码 <pre>多行代码

<ul><li>

<ol><li>

<div>

<table> tbody th(head) tr(row) td(表格)

举个例子:

<table summmary="本表格记录2012年到2013年的库存记录">

<caption>2012年到2013年的库存记录</caption>

<tr>

<th>产品名称 </th>

<th>品牌 </th>

<th>库存量(个) </th>

<th>入库时间 </th>

</tr>

<table>

<a href="目标网址" target="_blank">click here!</a> 超链接打开新的窗口展示

<a href="mailto:xx@xx.xx?cc=xx&bcc=xxx&subject=xxxx&body=xxxx">邮件发送、抄送等

注意:第一个分割是用?,其他的用&

<radio> 单选

<checkbox> 复选

<select><option> 下拉框 selected="selected" 默认选中 如果实现多选,select后添加multiple="multiple"

&nbsp; 空格

<span>标签是没有语义的,它的作用就是为了设置单独的样式用的