2-HTML Text Formatting Elements

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

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

 

转载于:https://www.cnblogs.com/robohou/p/8451317.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值