HTML
  Home arrow HTML arrow Page 2 - 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  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
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: 4 stars4 stars4 stars4 stars4 stars / 4
    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 Font of Text


    (Page 2 of 5 )

    The following example demonstrates how to set the font of your text:


    <html>

    <body>

    <h1 style="font-family:verdana">PERTY TEXT HOORAY!</h1>

    <p style="font-family:wst_czech">PERTY TEXT HOORAY!</p>

    <p style="font-family:webdings">PERTY TEXT HOORAY!</p>

    <p style="font-family:tunga">PERTY TEXT HOORAY!</p>

    <p style="font-family:impact">PERTY TEXT HOORAY!</p>

    <p style="font-family:roman">PERTY TEXT HOORAY!</p>

    <p style="font-family:latha">PERTY TEXT HOORAY!</p>

    <p style="font-family:symbol">PERTY TEXT HOORAY!</p>

    <p style="font-family:arial">PERTY TEXT HOORAY!</p>

    <p style="font-family:italic">PERTY TEXT HOORAY!</p>

    <p style="font-family:georgia">PERTY TEXT HOORAY!</p>

    <p style="font-family:gautam">PERTY TEXT HOORAY!</p>

    <p style="font-family:script">PERTY TEXT HOORAY!</p>

    <p style="font-family:wst_span">PERTY TEXT HOORAY!</p>

    <p style="font-family:wingdings">PERTY TEXT HOORAY!</p>

    <p style="font-family:trebuchet">PERTY TEXT HOORAY!</p>

    </body>

    </html>

    This would result in the following being displayed in the browser:

      PERTY TEXT HOORAY!

      PERTY TEXT HOORAY!

      PERTY TEXT HOORAY!

      PERTY TEXT HOORAY!

       PERTY TEXT HOORAY!

     PERTY TEXT HOORAY!

      PERTY TEXT HOORAY!

      PERTY TEXT HOORAY!

      PERTY TEXT HOORAY!

      PERTY TEXT HOORAY!

      PERTY TEXT HOORAY!

      PERTY TEXT HOORAY!

      PERTY TEXT HOORAY!

      PERTY TEXT HOORAY!

     PERTY TEXT HOORAY!

      PERTY TEXT HOORAY!

    Adjusting Your Font Size

    You adjust the size of your text in HTML using font-size. Here is how we do so:


    <html>

    <body>

    <h1 style="font-size:150%">A black hole once escaped from Chuck Norris</h1> 

    More HTML Articles
    More By James Payne


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

    HTML ARTICLES

    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    Stay green...Green IT