您的位置:首页 > Web前端 > HTML

HTML标签记录

2015-12-13 15:34 495 查看
作为记录,未测试

<h1>标题</h1>(最多到<h6>)
<p>段落</p>
<br />换行(不建议使用<br>)夜行书生
<a href="http://xxx.com/xxx.html" target="可以为iframe(先定义name)">链接</a>(使用target="_blank"属性可以在新窗口打开)
<img src="" />图片(alt属性用来定义替换文本,align="bottom/middle/top/left/right")
<!--注释-->
<hr>水平线
<b>加粗</b>
<big>字体较大</big>
<small>字体较小</small>
<em>斜体</em>
<i>斜体</i>
<sub>下标</sub>
<sup>上标</sup>
<pre>预格式文本</pre>(保留空格和换行,适合显示代码)
<code>同上</code>
<address>地址</address>
<abbr title="这是缩写">缩写</abbr>(鼠标移至文本上显示title内容)
<bdo dir="rtl">从右向左输出</bdo>
<blockquote>长引用</blockquote>(会插入换行和外边距)
<q>短引用</q>(无效果)
<del>删除文本</del>
<ins>下划线</ins>
<link rel="stylesheet" type="text/css" href="mystyle.css">(引入样式)
<style type="text/css">定义样式</style>
<table frame="box/above/below/hsides/vsides">(边框)
<caption>标题</caption>
<thead>页眉</thead>
<tbody>主体</tbody>
<tfoot>页脚</tfoot>
<th colspan="2">表头</th>(跨列)
<th rowspan="2"></th>(跨列)
<tr>行
<td>单元格</td>
</tr>
</table>
<ul type="disc/circle/squre">无序列表
<li>1</li>
<li>2</li>
</ul>
<ol start="50" type=" /A/a/I/i">有序列表
<li>50</li>
<li>51</li>
</ol>
<dl>定义列表
<dt>定义项目</dt>
<dd>定义描述</dd>
</dl>
<form>
<fieldset>表单周围有边框
<legend>健康信息</legend>
身高:<input type="text" />
体重:<input type="text" />
</fieldset>
</form>
<form action="MAILTO:xxxxxxx@qq.com" method="post" enctype="text/plain">
姓名:<br />
<input type="text" name="name" value="yourname" size="20">
<br />
电邮:<br />
<input type="text" name="mail" value="yourmail" size="20">
<br />
内容:<br />
<input type="text" name="comment" value="yourcomment" size="40">
<br /><br />
<input type="submit" value="发送">
<input type="reset" value="重置">
</form>
<meta name="description" content="Free Web tutorials on HTML, CSS, XML" />描述
<meta name="keywords" content="HTML, CSS, XML" />关键词
<meta http-equiv="Refresh" content="5;url=http://www.w3school.com.cn" />重定向
<noscript>Your browser does not support JavaScript!</noscript>不支持script
<script type="text/javascript">
<!--老浏览器
document.write("Hello World!")
//-->
</script>



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: