Detailed explanation on the use and function of tag in html

黄舟
Release: 2017-06-19 13:31:06
Original
4417 people have browsed it

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?

and 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 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>
Copy after login

The displayed result is:

U.N.
Jack weighs 90 kg.
SOS
NATO
radar
FBI
Copy after login

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 tag instead of . Style sheets can now be used to specify spoken pronunciations, for example

<abbr title="Structured Query Language">SQL</abbr>
Copy after login

and

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

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]

----The role of the tag

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

<abbr title="phone">P</abbr>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template