NOTES:
o PageResource
o ASCII Character Codes
o Hex Color Codes
NOTE: Color is always expressed as RGB (Red/Green/Blue), where each color has a value between 0 and 255 expressed in hex notation. For example, BGCOLOR="#FFFF00" sets the background color to teal. For more information check out Hex Color Codes.
<MAP attribute>...</MAP>
Specifies a collection of hot spots that define a client-side image map. The AREA tag can be used inside to define the hot spots.
<OPTION value="...">item
Specifies an item in the drop down list. Placed within the opening and closing SELECT tags. Any text following the OPTION tag is what the user will see in the list.
Also, remember that Style Sheets are not surported by some older browsers, although very few people will be using broswers not capable of supporting them these days.
There are three ways to add style to your documents: linking to a style sheet, adding a style block, or using inline style attributes. In fact, you can use all three if you like. If there is a conflict, the browser will use the most recent style definitions for that occurrence.
Inside the HEAD tag, add something like this:
<LINK REL=STYLESHEET HREF="URL of style sheet" TYPE="text/css">
Your Style Sheet might contain something like this:
H1 {font-size: 20pt; font-weight: bold}
H2 {font-size: 16pt; font-weight: bold}
P {margin-left: -20px; margin-right: -20px; margin-top: 30px}
BODY {background: URL(http://my.server.com/pictures/back.gif); text-indent: 2cm}
<HEAD>
.
.
<STYLE TYPE="text/css">
<!--
BODY {font-family: Arial; font-size: 12pt; font-style: italic}
P {margin-left: 30px; margin-right: 30px; margin-top: 10px}
-->
</STYLE>
</HEAD>
To change the color and indent of a certain paragraph, you could do the following:
<P STYLE="margin-left: 1in; margin-right: 1in; color: #0000FF">
This text would be indented and blue.
</P>
To change the style for an entire portion of your document, you might do the following:
<DIV STYLE="margin-left: 0.5in; margin-right: 0.5in; font-family: Arial">
This whole division of the page will be indented and any text will be displayed in the Arial font.
</DIV>
You can also group all the font statements together like this:
A:active {font: bold italic 15pt/22pt Arial, serif}
The weight and style must be specified first, and the first number represents the size, while the second number represents the line height.
Encloses a long quote. Both the left and right margins are indented.
code. The text is rendered in small font.
Displays text in fixed-width type. Use PRE instead.
fixed-width typewithout collapsing spaces.
Inserts blocks of spaces into HTML documents.
Attributes:
Values:
Values:
Causes enclosed text to be displayed by the browser without processing most HTML tags. Use PRE instead.