下表列举了文字格式常见的关键字
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title style="color: red">This is a good test</title>
- </head>
- <body>
- <h1 style="font-size: 300%;font-style:normal; text-align: center" >This is a heading</h1>
- <p style="background-color: aquamarine; color: red; text-align: center">
- 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>
- <hr>
- HTML Text Formatting Elements
- <hr>
- Tag Description<br>
- b Defines bold text<br>
- em Defines emphasized text<br>
- i Defines italic text<br>
- small Defines smaller text<br>
- strong Defines important text<br>
- sub Defines subscripted text<br>
- sup Defines superscripted text<br>
- ins Defines inserted text<br>
- del Defines deleted text<br>
- mark Defines marked/highlighted text<br>
- <hr>
- </body>
- </html>
- View Code
2-HTML Text Formatting Elements
来源: http://www.bubuko.com/infodetail-2499481.html