iLTC Home
Bookmark iLTC!

Categories

Perl
  • Perl Tutorials Beginners

  • Javascript
  • Javascript Tutorials
  • Javascript Tutorials Beginners

  • HTML
  • HTML Tutorials

  • Command Line
  • Command Line Tutorials

  • How Tos
  • Other Tips and Tricks



  • for($i;$i < 1000;$i++) { }
    1727897

    iLoveTheCode.com

    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:
    The Classic BareBones Guide to HTML
    W3C's Official HTML 4.01 documentation
    HTML Codes
    InvestInTech.com - Learning HTML (numerous HTML Links)
    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



    Previous Article: HTML Image
    Next Article: HTML Color Codes






    Search iLTC w/ Google




    Recent Articles

  • HTML Font Code
  • Javascript and CSS - Easy Pop Up Help Balloons
  • Use OnMouseOver in Javascript
  • Use onMouseOut in Javascript
  • Use innerHTML to Change Text on a Page
  • Renaming a File with Perl's RENAME Function
  • PRINT to Browser with document.write Command in Javascript
  • Passing an Argument or Variable to a Javascript
  • Opening an Alert Box in Javascript
  • Opening a REMOTE WINDOW in Javascript
  • OPEN and WRITE a Data File in Perl
  • OPEN and READ a Data File in Perl
  • Mimic Typing from a Textfield in a Textarea with Javascript
  • Javascript Reset Form








  • Perl Programming - Javascript Programming - HTML Code - Mac Unix Command Line - Maybe Some PHP - Free Scripts - ILoveTheCode
    All Content © 2006-2009 iLoveTheCode.com


    Contact Chris | About this Site


    1727622
    Counter by iLoveTheCode.com


    Last Modified: Friday, 20-Nov-2009 02:22:47 EST



    Hosted as well :)
    Home-brewed logo - 1997