Home arrow HTML arrow Page 4 - HTML Formatting and Colors
HTML

HTML Formatting and Colors


In our last tutorial we left off discussing some basic HTML formatting. In this episode we will continue our discussion of formatting and get into working with Entities. Thereís a lot to cover, so letís get busy.

Author Info:
By: James Payne
Rating: 5 stars5 stars5 stars5 stars5 stars / 8
January 15, 2008
TABLE OF CONTENTS:
  1. · HTML Formatting and Colors
  2. · Quotation, Acronyms, And More
  3. · Writing Backwards
  4. · Handing Out Citations
  5. · Background
  6. · Color Code Chart

print this article
SEARCH DEVARTICLES

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


blog comments powered by Disqus
HTML ARTICLES

- Does HTML5 Need a Main Element?
- Revisiting the HTML5 vs. Native Debate
- HTML5: Not for Phone Apps?
- HTML5 or Native?
- Job Hunting? Freelancer.com Lists This Quart...
- HTML5 in the News
- Report: HTML5 Mobile Performance Lags
- The Top HTML5 Audio Players
- Top HTML5 Video Tutorials
- HTML5: Reasons to Learn and Use It
- More of the Top Tutorials for HTML5 Forms
- MobileAppWizard Releases HTML5 App Builder
- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials