HTML <B>, <strong>, <big>, <small>, <em>, <I>, <sub>, and <sup> tags, and emsup
HTML <B> tag
All browsers support <B> labels.
Definition and usage
<B> label rules are in bold.
Note: According to HTML5 specifications, the <B> label should be used as the final option only when no other suitable labels are more appropriate. HTML5 standard declaration:
Tip: You can also use the CSS "font-weight" attribute to set bold text.
HTML <strong> label definition and usage
The <strong> label is the same as the <em> label. It is used to emphasize text, but it emphasizes more.
Browsers usually display the content in the <strong> label in a different way than the <em> label. The content is usually displayed in bold font (relative to italic, in this way, the two tags can be distinguished.
If the common sense tells us that the <em> label should be used less, the <strong> label should appear less frequently. If the text modified with the <em> tag seems to be shouting, then the text modified with the <strong> tag will be like a scream. In the same way, the use of <strong> is more noticeable and effective.
For example, users who frequently access W3school can note that the first sentence of many tutorial pages is shown in bold. In fact, the <strong> label is used for the summary. The reason for using this label is that the tutorial summary not only summarizes the content of the page, but also locates at the most important position of the page, its content is naturally very important and worth emphasizing.
HTML <big> tag
All browsers support <big> labels.
Definition and usage
<Big> the label shows the font size.
The <big> label can be used to easily enlarge the font. This is simply not easy: When the browser displays the text between the <big> label and its corresponding </big> label, the font of the text is bigger than the surrounding text. However, if the text is already the largest font size, the <big> label will not work.
Even better, the <big> label can be nested to enlarge the text. Each <big> label can hold the font size up to 7, as defined in the font model.
However, you should be careful when using the <big> label, because browsers always try to understand various labels very broadly. For browsers that do not support the <big> label, it often regards it as a bold label.
HTML <small> label
All browsers support <small> labels.
Definition and usage
<Small> the label displays the small font.
The <small> label is the same as the <big> label corresponding to it, but it is used to zoom in the font instead of in the font. If the enclosed font is already the minimum font size supported by the font model, the <small> label does not work.
Like the <big> label, the <small> label can also be nested to reduce the text continuously. Each <small> label reduces the text font by one until it reaches the lower limit.
HTML <em> label definition and usage
<Em> the tag tells the browser to express the text as emphasized content. For all browsers, this means that the text should be displayed in italic.
Skills are also required to emphasize in the text. If you emphasize too much, some important phrases will be missed. If you emphasize too little, you cannot really highlight the important part. Like condiments, it is best not to abuse the emphasis.
Although the content modified by the <em> label is displayed in italics, the content also has a broader meaning. one day in the future, the browser may also use other special effects to display the highlighted text. If you only want to use italics to display text, use the <I> label. In addition, the document can include cascading style definitions used to change text display.
In addition to the emphasis, you can also consider using the <em> label when introducing new terms or referencing certain types of terms or concepts as fixed styles. For example, W3School often uses the <em> label for important terms. <Em> tags can be used to distinguish these names from other italics.
HTML <I> tag
All browsers support <I> labels.
Definition and usage
<I> the label displays the italic text effect.
<I> labels are similar to content-based style labels <em>. It tells the browser to display the text in italic or oblique. If this italic is not available for this browser, you can use highlight, anti-white, or underline styles.
Tip: <I> the tag must be used with the end tag </I>.
HTML 5 <sub> and <sup> label definition and usage
<Sub> tags can define subscript text. <Sup> you can define the upper-level text.