Home  >  Article  >  Web Front-end  >  Detailed explanation of the use of tag in html

Detailed explanation of the use of tag in html

黄舟
黄舟Original
2017-06-21 10:45:161997browse

Tag definition and usage instructions

A tag is a phrase tag used to define special terms or phrases.

Tip: We do not object to the use of this tag, but if you are only using this tag to achieve a certain visual effect, we recommend that you use CSS, which may achieve a richer effect.

All phrase tags:

Define text as emphasized content.

Define the text as more emphasized content.
Define a definition item.
Defines computer code text.
Define sample text.
Define keyboard text. It indicates that the text was typed from the keyboard. It is often used in computer-related documentation or manuals.
Define variables. You can use this tag with the

 and  tags. 
Define citation. Use this tag to define a citation for a reference, such as the title of a book or magazine.

Differences between HTML and XHTML
None

Standard attributes: id, class, title, style, dir, lang, xml:lang
For a complete description, Please visit the standard properties

event properties: onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout , onkeypress, onkeydown, onkeyup

For a complete description, please visit the event properties.

Tags mark definitions of special terms or phrases.

Nowadays popular browsers usually use italics to display the text in . In the future, may also be useful in creating an index or glossary of documents.

Like many other content-based styling and physical style tags, the tag is best used sparingly. As a general style, especially in technical documentation, when new terms are introduced for the first time, they should be separated from the normal text so that the reader can better understand the current topic of the article and not be confused about it from then on. The term carries no markings.

is used to describe the meaning of a noun in a certain sentence. Semantic tags have no special meaning.


The above is the detailed content of Detailed explanation of the use of tag in html. For more information, please follow other related articles on the PHP Chinese website!

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