Search billions of records on Ancestry.com
   

How to format text

Introduction

The Basics

The basic tools

A Page Template

Formatting text

Making a list

Using colors
and backgrounds


Glossary
   It's easy to change the appearance of your text, and since text is usually the largest part of the content of a web site, these variations can lend emphasis and attractiveness to your pages. Text can be modified in three primary ways:
  • Emphasis, such as bold or italics
  • Size
  • and Style (font face)
      Bold, italic and underlined text can be accomplished by simply surrounding the text with the following tags:
Bold <b>.....</b>
Italic <i>.....</i>
Underlined <u>.....</u>
Strikeout <s>.....</s>    (Not supported by all character sets)
      You can combine any of these effects by using two or more of the tags in combination. It is essential, however, that you nest the sets of tags inside each other, or the effect on the following text will definitely not be what you had in mind. Here is an example of proper nesting:

<b><i><u>Example</u></i></b> gives this effect Example      Variations in size can be accomplished in several ways. One of the more common reasons for changing the size of text is to create headlines, and the html specification has a tag just for that purpose.

To make text in these sizes Use these tags
Large text <h3> Text goes here </h3>
Larger text <h2> Text goes here </h2>
Largest text <h1> Text goes here </h1>

      When you use the headline tags, your browser will add 'white space' around the text as well, so if you just want to make one word or a phrase larger, use the <font> tag instead. The FONT tag has several attributes, but for now we'll look just as the one for size. The default size for text is 3. This is the size your browser will display if no other size attribute is assigned. The body text on this page is size 3.

    <font size=2>This text is size 2</font>   This text is size 2
    <font size=4>This text is size 4</font>   This text is size 4
    <font size=5>This text is size 5</font>   This text is size 5
    <font size=1>This is tiny text, size 1</font>   This is tiny text, size 1.

      Notice that each block of differently sized text has an opening font tag, which specifies the size, and a closing font tag, which is just </font>.

More coming soon

Last Modified 02 Jan 2000