iLTC Home
Bookmark iLTC!
iLTC Google Boards

Google Groups
Receive The Code in Email!



Categories

Perl
  • Perl Tutorials Beginners

    Javascript
  • Javascript Tutorials
  • Javascript Tutorials Beginners

    HTML
  • HTML Tutorials



  • I bookmarked this site...
    20,072

    iLoveTheCode.com
    HTML > HTML Tutorials How To Easy > HTML Font Code

    HTML Font Code



    <font face="verdana,courier" size=2 color=#CCCCCC>Hello</font>

    -We wrap our font tags around our text.

    NOTE: HTML syntax is simply this: for each opening tag there is a matching closing tag that begins with </


    The most commonly used properties for the font tag are as follows:

    face="verdana,courier" <--- separate secondary fonts by commas and use quotes
    size=2 <--- this is a preset size by browsers. Use a style sheet for pixels.
    color=blue <--- standard colors and use pound sign with hex

    Some other useful font tags:
    <h1 align=left>Hello</h1> <--- can be 1 through 6 - makes bold headings - 1 is biggest - align can equal left, right, or center
    <big>Hello</big>
    <small>Hello</small>
    <b><font face=verdana>Hello</font></b> <--- for bold text


    A simple style sheet:
    <style type=text/css>
    font {
    font-family: verdana, 'trebuchet ms';
    font-size: 14px;
    color:#333333;
    font-weight:bold;
    text-decoration:none;
    }
    </style>

    Then just use font without properties since they are all defined in the style sheet, like so:

    <font>Hello</font>


    Resources:
    Make a New Paragraph Using HTML
    HTML Tags
    HTML Tables
    HTML Background
    Make Italic Text Using HTML
    Make Text Bold Using HTML
    Make Strikethrough Text Using HTML
    Make a Line Return Using HTML
    HTML Image
    The Classic BareBones Guide to HTML
    W3C's Official HTML 4.01 documentation
    HTML Codes


    Previous Article: HTML Image
    Next Article: HTML Color Codes





    Bulletproof Web DesignBulletproof Web Design

    Dan Cederholm

    New $26.39

    Head First HTML with CSS...Head First HTML with CSS & XHTML

    Eric Freeman, Elis...

    New $26.39

    Pro CSS and HTML Design ...Pro CSS and HTML Design Patterns

    Michael Bowers

    New $29.69

    CSSCSS

    Eric Meyer

    New $29.69

    Learning Web DesignLearning Web Design

    Jennifer Niederst ...

    New $29.69

    jQuery in ActionjQuery in Action

    Bear Bibeault, Yeh...

    New $26.39

    Creating Web SitesCreating Web Sites

    Matthew MacDonald

    New $19.77

    Dreamweaver CS3Dreamweaver CS3

    David McFarland

    New $29.69

    DojoDojo

    Matthew A. Russell...

    New $26.39


    Of Interest:
  • Undefine an Array in Perl
  • Combine, Put Two Arrays Together in Perl
  • Matching at the Beginning and End
  • Write a WHILE LOOP in Perl, Carefully
  • Javascript SetTimeout
  • Javascript Push - Use Push on an Array in Javascript
  • Javascript Reverse - Use Reverse on Items in an Array in Javascript
  • Splitting an Array using Javascript
  • HTML Frames
  • HTML Font Code
  • HTML Forms
  • HTML Image

  • More Articles:
  • Create a Subroutine in Perl
  • Add to End of an Array with Push in Perl
  • Use the Perl PRINT FUNCTION
  • Write a FOR LOOP in Perl
  • onClick Javascript
  • Javascript Alert
  • Opening an Alert Box in Javascript
  • Use onLoad to Call More than One Function with Javascript
  • PRINT to Browser with document.write Command in Javascript
  • Create a Function in Javascript
  • HTML Color Codes
  • Make a Line Return Using HTML
  • HTML Codes
  • HTML Subscript Text

  • Search iLTC w/ Google





    Recent Articles

  • Javascript Focus Form Field
  • Javascript Lowercase Text
  • Javascript Uppercase Text
  • Javascript Superscript Text
  • Javascript Subscript Text
  • Make Text Blink Using Javascript
  • Make a String into a Link in Javascript
  • Javascript Italics Text
  • Javascript Bold Text
  • Javascript Redirect
  • HTML Frames
  • HTML Color Chart
  • HTML Link
  • Javascript Status Bar








  • Perl Programming - Javascript Programming - Maybe Some PHP - Free Scripts - ILoveTheCode
    All Content © 2006 iLoveTheCode.com


    Contact Chris | About this Site


    316,812
    Counter by iLoveTheCode.com


    Last Modified: Friday, 23-Jun-2006 07:23:14 EDT