码迷,mamicode.com
首页 > Web开发 > 详细

2-HTML Text Formatting Elements

时间:2018-02-17 00:21:29      阅读:268      评论:0      收藏:0      [点我收藏+]

标签:gif   closed   png   size   ack   htm   tle   图片   body   

下表列举了文字格式常见的关键字

TagDescription
<b> Defines bold text
<em> Defines emphasized text 
<i> Defines italic text
<small> Defines smaller text
<strong> Defines important text
<sub> Defines subscripted text
<sup> Defines superscripted text
<ins> Defines inserted text
<del> Defines deleted text
<mark> Defines marked/highlighted text
技术分享图片
 1 <!DOCTYPE html>
 2 <html lang="en">
 3 <head>
 4     <meta charset="UTF-8">
 5     <title style="color: red">This is a good test</title>
 6 </head>
 7 
 8 <body>
 9 <h1 style="font-size: 300%;font-style:normal; text-align: center" >This is a heading</h1>
10 <p style="background-color: aquamarine; color: red; text-align: center">
11     hello everyone, welcome to read my <sup>html</sup> learning code <sub>html5</sub>, thank <del>you</del> <small>for</small> coming<strong> here</strong> for <mark>fun</mark>> </p>
12 
13 
14 
15 <hr>
16 HTML Text Formatting Elements
17 <hr>
18 Tag     Description<br>
19  b         Defines bold text<br>
20 em      Defines emphasized text<br>
21 i         Defines italic text<br>
22 small     Defines smaller text<br>
23 strong     Defines important text<br>
24 sub     Defines subscripted text<br>
25 sup     Defines superscripted text<br>
26 ins     Defines inserted text<br>
27 del     Defines deleted text<br>
28 mark     Defines marked/highlighted text<br>
29 <hr>
30 </body>
31 </html>
View Code

技术分享图片

 

2-HTML Text Formatting Elements

标签:gif   closed   png   size   ack   htm   tle   图片   body   

原文地址:https://www.cnblogs.com/robohou/p/8451317.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!