This time I will bring you a knowledge summary of HTML text format. What are the precautions when using HTML text format knowledge summary? Here are practical cases, let’s take a look.
HTML text formatting tag
Tag
Description
<b> 定义粗体文本 <em> 呈现为被强调的文本 <i> 定义斜体字 <small> 定义小号字 <strong> 定义重要文本 <sub> 定义下标字 <sup> 定义上标字 <ins> 定义插入字 <del> 定义删除字
Usual tag replace the bold tag to use, < ;em> is used instead of the tag. However, the meanings of these tags are different: and define bold or italic text. or means that the text you are presenting is important, so highlight it. All major browsers today can render fonts in a variety of effects. However, future browsers may support better rendering. Text code case list:
<html> <body> <b>This text is bold</b> <br /> <strong>This text is strong</strong> <br /> <big>This text is big</big> <br /> <em>This text is emphasized</em> <br /> <i>This text is italic</i> <br /> <small>This text is small</small> <br /> This text contains <sub>subscript</sub> <br /> This text contains <sup>superscript</sup> </body> </html>
Default text
This example demonstrates how to use the pre tag to control blank lines and spacesI believe you have mastered the method after reading these cases. For more exciting content, please pay attention to php Chinese website Other related articles!
Related reading:
Detailed examples of HTML text formatting
Special characters of html-css3 content: "Special How to use the symbol "
#What is the serialization format of HTML table
The above is the detailed content of Knowledge summary of HTML text format. For more information, please follow other related articles on the PHP Chinese website!