常用文本格式标签
标签 | 显示效果 |
<b></b> <strong></strong> |
文字以粗体方式显示 |
<i></i> <em></em> | 文字以斜体方式显示 |
<s></s> <del></del> |
文字以加删除线方式显示 |
<u></u> <ins></ins> |
文字以加下划线的方式显示 |
<small></small> |
定义小号字体,使文本比周围字体小一号,下限1号 |
<big></big> |
定义大号字体,使文本比周围字体大一号,上限7号 |
<sub></sub> | 定义下标文本 |
<sup></sup> |
定义上标文本 |
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8" /> 5 <title>Doument</title> 6 </head> 7 <body> 8 <b>啦啦啦</b> 9 <strong>啦啦啦</strong> 10 <i>啦啦啦</i> 11 <em>啦啦啦</em> 12 <s>啦啦啦</s> 13 <del>啦啦啦</del> 14 <u>啦啦啦</u> 15 <ins>啦啦啦</ins> 16 </body> 17 </html>
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8" /> 5 <title>Doument</title> 6 </head> 7 <body> 8 哈哈哈<small>嘿嘿</small>哈哈哈 9 <br /> 10 哈哈哈<big>嘿嘿</big>哈哈哈 11 <br /> 12 a<sub>n</sub> 13 <br /> 14 2<sup>3</sup> 15 </body> 16 </html>
注意:
原文:https://www.cnblogs.com/Jun--/p/html_geshihuabiaoqian.html