]


You probably want something more on your web pages than just plain text. You can use images (I'll explain how to do that here.), but you can also use formatting to make your text look cooler. You can make text bold, italic or underlined, or combinations of these. These help text stand out. There are some other features of formatting, too. (Just don't overdo formatting)

The other types of formatting

  • Bullets, like these
  • Headlines, like the one that started this section (they come in 6 sizes)
  • Increase font size
  • Strikethrough text
  • DoSubscripts

  • DoSuperscripts
  • You can tell the browser to use different fonts
  • Dividers, like the one below


  • You can also combine any these features. (example: bold and italic, in a different font)

    How do you do these features? Simple.
    To make text bold, use <b> and </bgt; tags before and after the text you want bold.
    Use <i> and </i> before and after text that you want italic.
    Use <u> and </u > to make text underlined.
    Use <li> tags at the start of "bulleted" lines and </li> tags at the end.
    To use dividers, simply type an <hr> tag.
    To change font size, use a <font size="plus or minus value"> tag and use an </font> tag when you are done with the font change.
    Use a plus number or minus number to increase or decrease font size respectively.

    To do strikethrough text, type this tag:


    <strike>what you want to strikethrough</strike>

    There are six sizes of headlines. Headline 1 is the biggest. Headline 4 is regular size. Headline 6 is the smallest.

    Headlines are bold and have a little space between them and the following line and them and the preceeding line. Here are the tags for headlines:

    <h1> and </h1> Headline #1
    <h2> and </h2> Headline #2
    <h3> and </h3> Headline #3
    <h4> and </h4> Headline #4
    <h5> and </h5> Headline #5
    <h6> and </h6> Headline #6

    Headline 1

    Headline 2

    Headline 3

    Headline 4

    Headline 5
    Headline 6


    You can, of course, combine headline tags with other tags. For example, to

    center a headline


    you can use a headline tag and the center tag. (<center> and <&/center> , as I taught you on the basic text page) To combine any of these features, simply use more than one tag around what you want formatted. For example, use both b, u and font tags if you want something
    bold and underlined, in a different font.

    Don't forget end tags!

    My example

    A short history of beer

    Beer is made of the following ingredients: barley, water, and hops. At least these are the only things that should be in beer according to the Reinheitsgebot, or German Beer Purity Law of 1516. (Germans take beer seriously) Yeast creates the alcohol by fermentation. Alcohol is not added to beer directly. Yeast is. (Yeast's functionality was not understood at the time the Beer Purity Law was written.)

    The chemical formula for fermentation:
    Glucose-> carbon dioxide and alcohol

    C6H1206 -> 2C02 + 2C2H5OH

    The carbon dioxide forms the head or foam of beer. The CO2 in beer is naturally formed, where the C02 in pop isn't.

    The Egyptians invented beer, although different from the modern form. The Romans, although they controlled Egypt during the prime of the Empire, preferred wine. In the Middle Ages, beer became more like modern beer.


    How I coded for it:

    <hr>
    <b><i><u>A short history of beer</u></i></b>
    <hr>
    <br>
    <p>Beer is made of the following ingredients: <b>barley</b>, <b>water</b>,
    and <b>hops</b>. At least these are the only things that should be in beer according to the <i>Reinheitsgebot, </i>or German Beer Purity Law of 1516. (Germans take beer seriously) The yeast creates the alcohol by fermentation. Alcohol is not added to beer directly. Yeast is. (Yeast's
    functionality was not understood at the time the Beer Purity Law was written.)
    <br>
    <p><u>The chemical formula for fermentation:</u>
    <br>
    <font size="+3">Glucose-&gt; carbon dioxide and alcohol</font>
    <br>
    <p><font size="+3"><b>C<sub>6</sub>H<sub>12</sub>0<sub>6
    </sub>-&gt; 2C0<sub>2</sub> + 2C<sub>2</sub>H<sub>5</sub>OH</b>
    <br>
    <p>The carbon dioxide forms the head or foam of beer. <b>The CO<sub>2</sub>
    in beer is formed naturally, where the C0<sub>2</sub> in pop isn't.</b>
    <br>
    <p><u>The Egyptians</u> invented beer, although different from
    the modern form. The Romans, although they controlled Egypt in the prime of the Empire, preferred wine.
    In the Middle Ages, beer became more like modern beer.
    <hr>

    Go to the next part: links
    This page © Alan Gilfoy, 2003-2009.