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

Detailed explanation on the use and function of tag in html

黄舟
黄舟Original
2017-06-19 13:31:064361browse

I have been searching online for a long time. Only people said it is used together with "title". As for how to use it, I am still confused. I basically understand what they mean. But I still don’t understand something. How are they used in the production of web pages? Can’t we just write the text output directly? Why use so much code to explain? Wouldn't this increase the load on the page?

8a7974376be5f6c00c121222b727adb9 and eb37297a59d90581fe5571fb4ef859fe tags represent text abbreviations and abbreviations presented in web pages, and the full name of the abbreviation is given through the title attribute. The difference between the two is that the eb37297a59d90581fe5571fb4ef859fe tag is used to represent an acronym, and often the abbreviated form is a pronounceable word. For example:

<abbr title="United Nations">U.N.</abbr><br>
Jack weighs 90 <abbr title="kilograms">kg.</abbr><br>
<abbr title="Save Our Soul">SOS</abbr><br>
<acronym title="North Atlantic Treaty Organization">NATO</acronym><br>
<acronym title="radio detecting and ranging">radar</acronym><br>
<abbr title="Federal Bureau of Investigation">FBI</abbr>

The displayed result is:

U.N.
Jack weighs 90 kg.
SOS
NATO
radar
FBI

Some abbreviations, like URL and SQL, can be pronounced as one word, or they can be pronounced letter by letter. Here In this case, it is better to use the 8a7974376be5f6c00c121222b727adb9 tag instead of eb37297a59d90581fe5571fb4ef859fe. Style sheets can now be used to specify spoken pronunciations, for example

<abbr title="Structured Query Language">SQL</abbr>

and

abbr[title="Structured Query Language"]{speak:spell-out;}

can be used together.

[This tag is not useful for simple browsing, but if you want the text to be searchable, you can use it]

6a74014ee44f5deb5894267f99b68016 ----8a7974376be5f6c00c121222b727adb9The role of the tag

##abbr is used to mark an abbreviation abbr : abbreviation [əˌbri :vi'eɪʃn] Abbreviation

<abbr title="phone">P</abbr>

abbr abbreviation can be indexed by browsers and search

Qing provides useful information.

The above is the detailed content of Detailed explanation on the use and function 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