1.HTML Text Formatting Tags如下所示:
例如:有如下代码来演示上面各个Tag的用法
1 <!DOCTYPE html> 2 <html> 3 <body> 4 <p> <b>This text is bold.</b></p> 5 <p><strong>This text is strong.</strong></p> 6 <p><em>This text is emphaized.</em></p> 7 <p><i>This text is italic.</i></p> 8 <p><small>This text is small.</small></p> 9 <p>This is <sub>subscript</sub> and <sup>superscript</sup></p> 10 <p>My favorite color is <del>blue</del> <ins>red</ins></p> 11 <p><b>Note:</b>Browsers will strikethrough deleted text and 12 underline inserted text</p> 13 <p>Do not forget to buy the <mark>milk</mark> today.</p> 14 </body> 15 </html>
效果如下图所示: