All browsers support thetag.
tag specifies bold text.
Note: According to the HTML5 specification, thetag should be used as a last resort option when no other suitable tag is more suitable. HTML5 specification states:
Tip: You can also use the CSS "font-weight" property to set bold text.
tag is used to emphasize text just like thetag, but it emphasizes more strongly.
Browsers usually display the content in thetag differently from thetag, usually using bold fonts (as opposed to italics) to display the content, so that users can The two labels are distinguished.
If common sense dictates that we should use thetag less often, then thetag should appear less frequently. If text with thetag seems to scream, then text with thetag screams. In the same way that words spoken by taciturn people always carry their weight, limiting the use ofcan make it more noticeable and more effective.
For example, users who frequently visit W3school may notice that the first summary sentence of many tutorial pages is displayed in bold, but in fact, we use thetag for this summary. The reason for using this tag is that we believe that the tutorial summary not only summarizes the content of the page on which it is located, but is located at the most important position on the page, and its content is naturally very important and worthy of emphasis.
All browsers support thetag.
tag displays a large font effect.
Using thetag makes it easy to enlarge fonts. It couldn't be simpler: browsers display text contained between atag and its correspondingtag as one size larger than the surrounding text. However, if the text is already in the largest font size, thetag will have no effect.
Even better, you can nesttags to enlarge the text. Eachtag makes the font one size larger, up to the upper limit of size 7 text, as defined by the font model.
But you still have to be careful when using thetag, because browsers are always very lenient in trying to understand various tags, and for those browsers that do not support thetag, it often treats it as Labels in bold font.
All browsers support thetag.
label displays a small font effect.
Thetag is the same as its correspondingtag, but it reduces the font size instead of enlarging it. If the enclosed font is already the smallest size supported by the font model, thetag will have no effect.
Similar to thetag, thetag can also be nested to continuously shrink the text. Eachtag makes the text one size smaller, until the lower limit of one size is reached.
tag tells the browser to represent the text within it as emphasized content. For all browsers, this means displaying this text in italics.
Including emphasis in text also requires skills. If you emphasize too much, some important phrases will be missed; if you emphasize too little, you won't really highlight the important parts. It's the same with condiments that it's best not to overuse the emphasis.
Although the content modified by thetag is currently displayed in italics, these content also have a broader meaning. One day in the future, browsers may also use other special effects to display emphasized text. If you only want to italicize text, use thetag. In addition, documents can also include cascading style definitions that change the display of text.
In addition to emphasis, consider using thetag when introducing new terms or as a set style when referencing a specific type of term or concept. For example, W3School often usestags for important terms. Thetag can be used to distinguish these names from other italicized words.
All browsers support thetag.
tag displays italic text effect.
Thetag is similar to the content-based style tag. It tells the browser to display the contained text in italic or oblique fonts. If this type of italics is not available for the browser, you can use highlighting, inverting, or underlining styles.
Tips: Thetag must be used in conjunction with the closing tag.
tag can define subscript text.can define superscript text.