HTML Formatting and Colors - Handing Out Citations
(Page 4 of 6 )
If you ever need to cite a text, you can do so with the citation tag <cite>:
<html>
<body>
<cite> This is someone's long boring text I am citing. It has to look this way because usually anything you are citing is really boring. Weee... </cite>
</body>
</html>
The print out of this code would be:
This is someone's long boring text I am citing. It has to look this way because usually anything you are citing is really boring. Weee...
Defining Definitions
Let us suppose you created a website full of words and their definitions. And let us further suppose you were a child star named Webster. Could you still name your site Webster's Dictionary? If not, you could always name it Arnold's Dictionary. Whatchoo talkin' 'bout Willis?!?
No matter what you named the site, you would still use the definition tag <dfn> as shown below:
<html>
<body>
Willis' Dictionary
<pre>Nerd:<dfn>(adjective) You</dfn></pre>
</body>
</html>
This will result in:
Willis' Dictionary
Nerd:(adjective) You
Here is a pretty table to remind you of what we just discussed:
Tag | What it Does | Example | Result |
<abbr> | Used to create abbreviations | <abbr title="Mister T">Mr. T</abbr> | Will display Mr. T and when the user hovers over the text, it will say Mister T |
<acronym> | Used to create acronyms | <acronym title="World Wrestling Entertainment">WWE</acronym> | Will display WWE and when the user hovers over the text it will display World Wrestling Entertainment |
<address> | Used to create an address | <address> James Payne<br /> 2020 Yo Mama's House<br /> YoMama, Florida<br /> USA </address> | James Payne 2020 Yo Mama's House YoMama, Florida USA |
<bdo> | Controls the direction of the text | <bdo dir="rtl"> I will take you to our leader </bdo> | redael ruo ot uoy ekat lliw I |
<blockquote> <q> | Creates a long quote and a short quote | <blockquote> From Childhood's hour I have not been As others were I have not seen As other saw I could not bring my passions from a common spring From the same source I have not taken</blockquote> <p align="center"><q> -Edgar Allen Poe </q> | This is how you make a long quotation, followed by a short quotation: From Childhood's hour I have not been As others were I have not seen As other saw I could not bring my passions from a common spring From the same source I have not taken -Edgar Allen Poe |
<cite> | Creates a citation | <cite> This is someone's long boring text I am citing. It has to look this way because usually anything you are citing is really boring. Weee... </cite> | This is someone's long boring text I am citing. It has to look this way because usually anything you are citing is really boring. Weee... |
<dfn> | Creates a definition | <pre>Nerd:<dfn>(adjective) You</dfn></pre> | Nerd:(adjective) You |
Next: Background >>
More HTML Articles
More By James Payne