HTML
  Home arrow HTML arrow Page 3 - HTML Fonts, Styles, and Headers
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

HTML Fonts, Styles, and Headers
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2008-02-27

    Table of Contents:
  • HTML Fonts, Styles, and Headers
  • How to Set the Font of Text
  • How to Set the Color of Your Text
  • Styles in HTML/Working with CSS
  • Getting Inside Your Head

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    HTML Fonts, Styles, and Headers - How to Set the Color of Your Text


    (Page 3 of 5 )

    We set the color of our fonts using the color attribute. Here is an example:


    <html>

    <body>

    <h1 style="color:black">Here is some black text</h1>

    <h6 style="color:blue">Here is some blue text</h6>

    <h5 style="color:purple">Here is some purple text</h5>

    <h4 style="color:green">Here is some green text</h4>

    <h3 style="color:yellow">Here is some yellow text</h3>

    <h2 style="color:orange">Here is some orange text</h2>

    <p style="color:red">here is some red text</p>

    </body>

    </html>

     

      Here is some black text

      Here is some blue text
      Here is some purple text

      Here is some green text

      Here is some yellow text

      Here is some orange text

        here is some red text

    How to Set All the Properties of Your Font 

    Here is how we set all of the properties of our font:

    <html>

    <body>

    <p style="font-family:impact;font-size:90%;color:orange">

    It was a dark and stormy night and I had forgotten my umbrella. The rain was messing up my hair, washing out the product I had spent two hours putting in and ruining my emo look.

    </p>

    <p style="font-family:webdings;font-size:110%;color:blue">

    It was a dark and stormy night and I had forgotten my umbrella. The rain was messing up my hair, washing out the product I had spent two hours putting in and ruining my emo look.

    </p>

    </body>

    </html>

    And here it is folks, the results you've all been waiting for:

      It was a dark and stormy night and I had forgotten my umbrella. The rain was messing up my hair, washing out the product I had spent two hours putting in and ruining my emo look.

      It was a dark and stormy night and I had forgotten my umbrella. The rain was messing up my hair, washing out the product I had spent two hours putting in and ruining my emo look.

    More HTML Articles
    More By James Payne


       · Welcome to my article HTML Fonts, Styles, and Headers. As the title suggests, in...
     

    HTML ARTICLES

    - Tabular Database Forms with HTML
    - Using the Find Functions for HTML Database F...
    - Sorting for Database Forms with HTML
    - Edit and Other Database Form Functions with ...
    - More Database Form Functions with HTML
    - Database Form Functions with HTML
    - Using the HTML Table Element as a Recordset
    - Building Single Row Database Forms with HTML
    - Introduction to Database Forms with HTML
    - Another Look at Animation of Geographical Ma...
    - Animation of Geographical Map Regions
    - Changing and Moving Pictures with CSS
    - Clickable Geographical Map Regions
    - Gradient Creation with the HR Element
    - Text on HTML Images: Do it Yourself







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway