Learn HTML Today

Index

  HTML Tutorials
  GuruSearch!
  Web Glossary
  LiveWire Forums

Tutorials

  Getting Started
  Text
  Links
  Colors
  Backgrounds
  Images
  Tables
  Frames
  Image Maps

Advanced

  Design Guide
  Forms
  Meta Tags
  JavaScript
  Style Sheets
  SSI
  CGI
  Web Browsers

Resources

  HTML Editors
  Free Web Hosting
  Domain Names
  Copyrights
    Text



Remembering the previous lesson on the syntax of the HTML Markup tag (<tag>). You should be able to understand this document quite easily.


Text Style Tags:

<B>Bold</B>

<I>Italic<I>

<U>Underline<U>

<TT>Typewriter<TT>

<H1>Headline 1<H1>

<H2>Headline 2</H2>

<H3>Headline 3</H3>

<H4>Headline 4</H4>

<H5>Headline 5</H5>

<H6>Headline 6</H6>


Font Size Tags:

In addition to the above tags, newer browsers also support font tags which allow you to specify size, color, and font face for HTML text.

Example:   <FONT SIZE=3>Font size tags range from 1 to 7:</FONT>


1 2 3 4 5 6 7

<FONT SIZE=1> 1 </FONT>
<FONT SIZE=2> 2 </FONT>
<FONT SIZE=3> 3 </FONT>
<FONT SIZE=4> 4 </FONT>
<FONT SIZE=5> 5 </FONT>
<FONT SIZE=6> 6 </FONT>
<FONT SIZE=7> 7 </FONT>

Font size can also be specified, using plus and minus signs, as relative to the default size specified by the user:

FONT SIZE="+4"
FONT SIZE="+3"
FONT SIZE="+2"
FONT SIZE="+1"
FONT SIZE="-1"
FONT SIZE="-2"



Font Face Tags:

<FONT FACE="Helvetica, Arial ">
The newest browsers support the FONT FACE tag but specifying a typeface on the web is still an inexact science.
</FONT>:

<FONT FACE="Times, Times New Roman">
This is because present methods rely on the specified fonts being installed in the user's system. If they are not, default choices are used instead.
</FONT>:

To insure that your page looks like you want it to on the largest number of browsers and platforms, specify a series of fonts being sure to include common fonts for both Macintosh and Windows platforms.

Some examples:

FONT FACE="arial"

FONT FACE="Georgia, New York, serif"

FONT FACE="Arial, Helvetica, sans serif"

Keep in mind that some fonts are designed to be viewed on a computer screen and others in printed documents. Screen fonts, such as Verdana, Georgia, Geneva and New York, are more legible on web pages than are print fonts such as Times, Times Roman, Helvetica, Arial, etc.






Tell a friend about NetaGuru | Comment on NetaGuru | Bookmark NetaGuru


This page was last updated 12/12/03
Please read our disclaimer and legal notices.
All editorial content and graphics copyright 2002
NetaGuru.
Designed and maintained by David Jones and Reid Beels.
     
Advertisement:

Search the Best of the Web!