Page 1
In addition to these 216 hex-codes, there are 16 colors that can be represented in HTML by the English name for the color instead of the 6-digit hex-codes. These colors are:
| Aqua | Black | Blue | Fuschia |
| Gray | Green | Lime | Maroon |
| Navy | Olive | Purple | Red |
| Silver | Teal | White | Yellow |
Changing the Background or Text Color for an Entire Page
<BODY BGCOLOR="#HHHHHH" TEXT="#HHHHHH">
Background and Text Colors: Examples
Here is the code to produce a page with a background color of black and a text color of yellow:
<HTML>
<HEAD>
<TITLE>
Black Background With Yellow Text
</TITLE>
</HEAD>
<BODY BGCOLOR="#000000" TEXT="#FFFF00">
<P>This is a page with black background and yellow text.
</BODY>
</HTML>
Changing Specific Word Color
<FONT COLOR="#HHHHHH">text text text text text</FONT>
Bullet Lists
<UL>
<LI>They present information in an organized way.
<LI>They are simple to create using HTML.
<LI> The bullets look cool.
</UL>
Use the TYPE="circle" attribute to create "hollow circles" as bullets.
<UL TYPE="circle">
Ordered Lists
- List Item 1
- List Item 2
- List Item 3
Here's how I did it:
<OL>
<LI>List Item 1
<LI>List Item 2
<LI>List Item 3
</OL>
Capital Letters
<OL TYPE="a">
<LI>List Item 1
<LI>List Item 2
<LI>List Item 3
</OL>
Roman Numerals
<OL TYPE="I">
<LI>List Item 1
<LI>List Item 2
<LI>List Item 3
</OL>
Lowercase Roman Numerals
<OL TYPE="i">
<LI>List Item 1
<LI>List Item 2
<LI>List Item 3
</OL>
Start at a number
<OL START="4">
<LI>List Item 1
<LI>List Item 2
<LI>List Item 3
</OL>
Can I put these together?
You sure can. You can create some neat looking outlines and organizational structures on your Web pages by putting these list elements together. This is called using nested lists. If you'd like to used nested lists, just remember to close each list (<OL> or <UL>). Here is an example of something that you could create:
- Main Heading
- List item 1
- Bulleted Item 1
- Bulleted Item 2
- List item 2
- Bulleted Item 1
- Bulleted Item 2
- Bulleted Item 3
- List item 1
- Secondary Heading
- List item 1
- Bulleted Item 1
- Bulleted Item 2
- List item 2
- Bulleted Item 1
- Bulleted Item 2
- Bulleted Item 3
- List item 1
Here's what the code looks like:
<OL TYPE="A">
<LI>Main Heading
<OL>
<LI>List item 1
<UL>
<LI>Bulleted Item 1
<LI>Bulleted Item 2
</UL>
<LI>List item 2
<UL>
<LI>Bulleted Item 1
<LI>Bulleted Item 2
<LI>Bulleted Item 3
</UL>
</OL>
<LI>Secondary Heading
<OL>
<LI>List item 1
<UL>
<LI>Bulleted Item 1
<LI>Bulleted Item 2
</UL>
<LI>List item 2
<UL>
<LI>Bulleted Item 1
<LI>Bulleted Item 2
<LI>Bulleted Item 3
</UL>
</OL>
</OL>