Home >Web Front-end >HTML Tutorial >Knowledge summary of HTML text format
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 spaces<p>I believe you have mastered the method after reading these cases. For more exciting content, please pay attention to php Chinese website <a href="http://www.php.cn/html5/html5-3-mip-normal.html" target="_blank">Other </a> related articles! </p><p>Related reading: </p><p><a href="http://www.php.cn/p-tutorial-385286.html" target="_blank">Detailed examples of HTML text formatting</a><br></p><p><a href="http://www.php.cn/p-tutorial-385268.html" target="_blank">Special characters of html-css3 content: "Special How to use the symbol "</a><br></p><p><a href="http://www.php.cn/p-tutorial-385257.html" target="_blank">#What is the serialization format of HTML table</a><br></p>
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!