1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <meta http-equiv="X-UA-Compatible" content="ie=edge">
7 <title>文本元素</title>
8 </head>
9 <body>
10 <!-- 开始学习html -->
11 <a href="http://edu.51cto.com">51CTO学院</a>
12 <br>
13 <a href="http://edu.51cto.com" target="_">51CTO学院新标签打开</a>
14 <br>
15
16 <!-- b: 关键词 -->
17 <b>关键词</b>
18 <!-- strong: 表示非常重要的文本 -->
19 <p>你对我<strong>非常非常</strong>重要</p>
20 <!-- em: 强调 -->
21 <p>今天特别<em>热</em></p>
22 <!-- i: 外文词汇或科学相关术语 -->
23 <p>猫的英文单词为<i>cat</i></p>
24
25 <!-- 上标,下标 -->
26 <p>2<sup>2</sup>=4</p>
27 <p>H<sub>2</sub>O是水</p>
28
29 <!-- del:删除 -->
30 <p><del>这句话删除不要了</del></p>
31
32 <!-- u:下换线 -->
33 <p><u>添加下划线</u></p>
34
35 <!-- mark:标记 -->
36 <p>标记的演示,标记<mark>你真美</mark></p>
37
38 </body>
39 </html>
![]()