Home > Web Front-end > HTML Tutorial > Knowledge summary of HTML text format

Knowledge summary of HTML text format

php中世界最好的语言
Release: 2018-01-22 10:44:44
Original
1921 people have browsed it

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>    定义删除字
Copy after login

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>
Copy after login

Default text

This example demonstrates how to use the pre tag to control blank lines and spaces

I 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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template