2-HTML Text Formatting Elements
下表列举了文字格式常见的关键字
Tag | Description |
---|---|
<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>
厚积薄发,开物成务。
德才兼备、知行合一。
自强不息,厚德载物。