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>
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 tag instead of . 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]
----The 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!