Prev NEXT

How Web Pages Work

Adding Background Color

Change the background color of your page by adding bgcolor="color"withinthe tag.

Example:

Advertisement

Again, as was described in the section on changing font color, you can use most standard colors, or use aHexadecimal Color Code.

Creating Lists

There are three types of lists you can create: Unordered, Ordered and Descriptive.

Unordered List

An unordered list looks like this:

  • California
  • Oregon
  • 北卡罗莱纳

An unordered list is a bulleted list initiated by the tag

    . The tag
  • (short for List Item) is used before each item in the list. The closing tag
ends the list.

Example:

  • California
  • Oregon
  • North Carolina

The type of bullet can be changed to a "circle," "square" or "disc" by adding a specification within the

    tag:

    • California
    • Oregon
    • North Carolina
    • California
    • Oregon
    • North Carolina

    Ordered List

    An ordered list looks like this:

    1. oranges
    2. grapes
    3. cherries

    An ordered list is a list of items in a logical, numbered order. Use the tags

      and
    to start and end this kind of list. Again, the
  • tag is used in front of each item.

    Example:

    1. oranges
    2. grapes
    3. cherries

    你可以改变的类型tion by adding a "type" designation within the

      tag.

        orders the list by capital letters: (A, B, C...)

          orders the list by small letters: (a, b, c...)

            orders the list byRoman numerals: (I, II, III...)

              orders the list by small Roman numerals: (i, ii, iii...)

              If you would like to start your ordered list with a specified value, such as "6," use the following "start" and "value" tags:

              Descriptive Lists

              A descriptive list creates a list of text items with an indented second line:

              Marshall Brain Founder of HowStuffWorks

              Use the following tags in this manner:

              Marshall Brain
              Founder of HowStuffWorks

              The

              tag should correspond with the text you want lined up on the margin;
              corresponds with the line you want indented.

              In the next section we'll find out how to link to other sites.