首页 > 技术文章 > html格式化标签

wenqingqing 2016-04-08 16:50 原文

文本格式化标签

<b> 定义粗体文本
<em> 定义着重文字
<i> 定义斜体字
<small> 定义小号字
<strong> 定义加重语气
<sub> 定义下标字
<sup> 定义上标字
<ins> 定义插入字
<del> 定义删除字

计算机输出标签

<code> 定义计算机代码
<kbd> 定义键盘码
<samp> 定义计算机代码样本
<var> 定义变量
<pre>

定义预格式文本

 

文本引用标签及定义

<abbr> 定义缩写
<address> 定义地址
<bdo> 定义文字方向
<blockquote> 定义长的引用
<q> 定义短的引用语
<cite> 定义引用、引证
<dfn> 定义一个定义项目。

例 

<!DOCTYPE html>
<html>
<body>

<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>

</body>
</html>

输出  My favorite color is blue red! 有化过的标记。

 

<p>This paragraph will go left-to-right.</p> 
<p><bdo dir="rtl">This paragraph will go right-to-left.</bdo></p>    可看出输出语句为镜像分布。

输出 

This paragraph will go left-to-right.

    This paragraph will go right-to-left.

推荐阅读