HTML Formatting and Colors - Quotation, Acronyms, And More
(Page 2 of 6 )
Sometimes when you are working with text you will need to abbreviate a word. HTML provides you with a way to do this. You guessed it, it's the abbreviation tag <abbr>.
<html> <body> <abbr title="Mister T">Mr. T</abbr> </body> </html>
The above code will display the word Mr. T by itself on a page. When the user hovers over the word UN, a small pop-up caption appears displaying the words, "Mister T".
Acronyms work in the same way as abbreviations. If you wanted to use the acronym for World Wrestling Entertainment, or WWE, you could do this:
<html> <body> <acronym title="World Wrestling Entertainment">WWE</acronym> </body> </html>
Again, the acronym WWE would be displayed on the page and when the user hovered over the word a pop-up caption would read: World Wrestling Entertainment.
When writing an address in HTML you can use the address tag <address>:
<html> <body> <address> James Payne<br /> 2020 Yo Mama's House<br /> YoMama, Florida<br /> USA </address> </body> </html>
This would display:
James Payne 2020 Yo Mama's House YoMama, Florida USA