Home  >  Article  >  Web Front-end  >  HTML , , , , , , , and tags

HTML , , , , , , , and tags

WBOY
WBOYOriginal
2016-09-03 00:00:091989browse

HTML tag

All browsers support the tag.

Definition and Usage

The

tag specifies bold text.

Note: According to the HTML5 specification, the tag should be used as a last resort option when no other suitable tag is more suitable. HTML5 specification states:

-
should be used to represent titles, tags should be used to represent emphasized text, tags should be used to represent important text, and tags should be used. to represent annotated/highlighted text.

Tip: You can also use the CSS "font-weight" property to set bold text.

HTML tag

Definition and Usage

The

tag is used to emphasize text just like the tag, but it emphasizes more strongly.

Browsers usually display the content in the tag differently from the tag, 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 the tag less often, then the tag should appear less frequently. If text with the tag seems to scream, then text with the tag screams. In the same way that words spoken by taciturn people always carry their weight, limiting the use of can 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 the tag 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.

HTML tag

All browsers support the tag.

Definition and Usage

tag displays a large font effect.

Using the tag makes it easy to enlarge fonts. It couldn't be simpler: browsers display text contained between a tag and its corresponding tag as one size larger than the surrounding text. However, if the text is already in the largest font size, the tag will have no effect.

Even better, you can nest tags to enlarge the text. Each tag 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 the tag, because browsers are always very lenient in trying to understand various tags, and for those browsers that do not support the tag, it often treats it as Labels in bold font.

HTML tag

All browsers support the tag.

Definition and Usage

label displays a small font effect.

The

tag is the same as its corresponding tag, but it reduces the font size instead of enlarging it. If the enclosed font is already the smallest size supported by the font model, the tag will have no effect.

Similar to the tag, the tag can also be nested to continuously shrink the text. Each tag makes the text one size smaller, until the lower limit of one size is reached.

HTML tag

Definition and Usage

The

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 the tag 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 the tag. In addition, documents can also include cascading style definitions that change the display of text.

In addition to emphasis, consider using the tag when introducing new terms or as a set style when referencing a specific type of term or concept. For example, W3School often uses tags for important terms. The tag can be used to distinguish these names from other italicized words.

HTML tag

All browsers support the tag.

Definition and Usage

tag displays italic text effect.

The

tag 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: The tag must be used in conjunction with the closing tag .

HTML 5 and tags

Definition and Usage

tag can define subscript text. can define superscript text.

Statement:
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
Previous article:ps layers and cutsNext article:ps layers and cuts