HTML Quick Reference V 1

HTML Quick Reference

Basic Structure:

1.     <TITLE>.....< /TITLE>
Indicates the title of the document that is used as the window caption. This is the second of the two required tags for any HTML 3.2 compliant document.

2.     <BASE href="http://some.network/file.html">
Specifies the base URL of the document. This is used when dereferencing relative URLs in the page.

3.     <BASE href="http://some.net/file.html" TARGET="...">
Also specifies the base target frame that all links will default to. See the LINK tag for possible values used in TARGET.

4.     <META attribut1 attribute2>
This element can be used to specify name/value pairs describing various properties of the document. Below are some examples:
To have your page automatically reloaded every X seconds, use the following:
<META HTTP-EQUIV="REFRESH" CONTENT=X >
To have a different page automatically loaded after X seconds, use the following:
<META HTTP-EQUIV="REFRESH" CONTENT="X; URL=http://some.address/file.html">
To specify an expiration date for the page so that it will be reloaded after a certain date, use:
<META HTTP-EQUIV="Expires" CONTENT="Mon, 23 Sep 1996 01:21:00 GMT">
To specify keywords for certain search services to use, do the following:
<META HTTP-EQUIV="Keywords" CONTENT="keyword1, keyword2, ...">
To specify a description of your page for certain search services to use, do the following:
<META HTTP-EQUIV="Description" CONTENT="Describe your site here....">

5.     <LINK attribute=" HREF="..." >
Currently this tag is not widely supported, however in the future browsers will use a list of these tags to generate a navigation bar for the site. Without browser support, this tag can still be useful for site maintenance.

Attributes:

1.      REL="..."--Specifies the type of relationship of the link to this page. Possible values are: "home", "toc" (table of contents), "index", "glossary", "copyright", "bookmark", "up", "next", "previous", and "help".

2.      REV="..."--Used instead of REL, this specifies a reverse relationship from this page to the link. Possible values are: "made" (author, set HREF=email address) and all the ones used in REL.

3.      HREF="..."--Specifies the address of the link.

4.      TITLE="..."--Specifies a title for the link.

 

Attributes:

1.     ALINK="..."--Specifies the color of the activated links in the page.

2.     BACKGROUND="..."--Specifies an image to be tiled as background.

3.     BGCOLOR="..."--Specifies the background color.

4.     BGPROPERTIES=FIXED--Fixes the background image so that it doesn't scroll. (IE)

5.     LEFTMARGIN="n"--Specifies the left margin for the entire page. (IE)

6.     LINK="..."--Specifies the color of the links in the page.

7.     TEXT="..."--Specifies the color of the text in the page.

8.     TOPMARGIN="n"--Specifies the top margin for the entire page. (IE)

9.     VLINK="..."--Specifies the color of the followed links in the page.

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 yellow. For more information check out Colors of the Web.

 

Attributes:

1.     SIZE="..."--Sets the size of the font to any number between 1 and 7 with 3 being default. Relative sizes also work, e.g. SIZE=+2 .

2.     COLOR="..."--Specifies the default font color for the page.

3.     Name="..."--Specifies the typeface of the default font.

 

Attributes:

1.     ACTION="..."--Specifies the location of the gateway program to which the search string should be passed.

2.     PROMPT="..."--Specifies an alternate prompt for the text box.

 

Multimedia:

Attributes:

1.     SRC="..."--Specifies the URL of the image.

2.     DYNSRC="..."--Specifies the URL of a video clip or VRML world. An image can also be specified first using SRC= to cover for browsers that do not support videos. (IE)

3.     CONTROLS--Adds a set of controls under the video clip. (IE)

4.     LOOP="n"--For video clips, specifies the number of times to loop the clip. A value of "-1" or "INFINITE" makes it loop indefinitely. (IE)

5.     START="..."--Specifies when the video clip should start playing. Possible values are "FILEOPEN" (default), "MOUSEOVER", or both.(IE)

6.     USEMAP="#map1" --Tells the browser that the image is a client-side clickable image map defined under the name "map1".

7.     ISMAP --Tells the browser that the image is a server-side clickable image map.

8.     ALT="..."--Specifies a text string to be displayed on browsers that do not support inline images.

9.     BORDER="..."--Specifies the width of the border drawn around the image. If BORDER is set to "0", there will be no border even around pictures that are links.

10.  LOWSRC="..."--Specifies the URL of an image to be loaded first, before the image specified in SRC is loaded. LOWSRC usually reefers to a smaller image.

11.  ALIGN="..."--Specifies the alignment of the image.

Values:

1.      RIGHT or LEFT--Aligns the image to the specified side of the page, and all text is wrapped around the image.

2.      TOP, MIDDLE, BOTTOM, TEXTTOP, ABSMIDDLE, BASELINE, and ABSBOTTOM--Specifies the vertical alignment of the image with other items on the same line.

12.  VSPACE="..."--Specifies the space left between the edge of the image and the items above or below it.

13.  HSPACE="..."--Specifies the space left between the edge of the image and the items to the left or right of it.

14.  WIDTH="..."--Specifies the width of the image. If the width is not the actual width, the image is scaled to fit.

15.  HEIGHT="..."--Same as above ,except it specifies the height of the image.

 

Attributes:

1.     NAME="..."--Specifies the name of the map so that it can be referred to later.

 

Attributes:

1.     SHAPE="..."--Specifies the shape of the hot spot. Possible values are RECT, RECTANGLE, CIRC, CIRCLE, POLY, or POLYGON.

2.     COORDS="..."--Specifies the coordinates that define the hot spot's position. Two pairs of coordinates are needed for RECT, three or more pairs for POLY, and one pair of coordinates and a radius for CIRC.

3.     HREF="..."--Specifies the URL that this hot spot points to.

4.     NOHREF--Indicates that this hot spot points to nothing.

5.     TARGET="..."--Specifies which window the link will be loaded into. The target can be a name of a frame that you specified in the FRAME tag or one of the following:

Values:

1.      "_blank"--Loads the link into a new blank window.

2.      "_parent"--Loads the link into the immediate parent of the document the link is in.

3.      "_self"--Loads the link into the same window. (default)

4.      "_top"--Loads the link into the full body of the current window.

 

Attributes:

1.     SRC="..."--Specifies the URL of the sound to be played.

2.     LOOP="n"--Specifies the number of times the sound will loop. Values of "-1" or "INFINITE" make the sound loop indefinitely.

 

Attributes:

1.     ALIGN="..."-- Possible values of "TOP", "MIDDLE", or "BOTTOM". Specifies the alignment of the text around the marquee with respect to the marquee.

2.     BEHAVIOR="..."--Possible values of "SCROLL" (default), "SLIDE", or "ALTERNATE". Specifies the behavior of the marquee text. "SCROLL" is the default, "SLIDE" makes the text start from off the screen and then stick, "ALTERNATE" makes the text alternate back and forth repeatedly.

3.     BGCOLOR="..."--Specifies the background color of the marquee.

4.     DIRECTION="..."--Possible values are "LEFT" (default) or "RIGHT". Specifies the direction for the text to scroll.

5.     HEIGHT="..."--Specifies the height of the marquee in number of pixels or % of screen.

6.     HSPACE="n"--Specifies the left and right margins of the outside of the marquee in pixels.

7.     LOOP="n"--Specifies the number of times the marquee will loop. Values of "-1" or "INFINITE" make the marquee loop indefinitely.

8.     SCROLLAMOUNT="n"--Specifies the number of pixels between each successive draw of the marquee text.

9.     SCROLLDELAY="n"--Specifies the number of milliseconds between each successive draw of the marquee text.

10.  VSPACE="n"--Specifies the top and bottom margin for the outside of the marquee.

11.  WIDTH="..."--Specifies the width of the marquee either in pixel or in a percentage of the screen.

 

Attributes:

1.     ALIGN="..."-- Possible values of "LEFT", "RIGHT", "TOP", "MIDDLE", or "BOTTOM". Specifies the alignment of the text around the object with respect to the object.

2.     ALT="..."--Specifies the text to be displayed by browsers that recognize the tag but cannot show applets.

3.     CODE="..."--Specifies the name of the Java applet.

4.     CODEBASE="..."--Specifies the base address of the applet. The directory in which the applet is located.

5.     DOWNLOAD=n--Specifies an order in which images are downloaded.

6.     HIGHT="..."--Specifies the height of the applet in number of pixels or % of screen.

7.     HSPACE="n"--Specifies the left and right margins of the outside of the applet in pixels.

8.     NAME="..."--Specifies the name of the applet instance, in case there are more than one of the same applet on the page.

9.     VSPACE="n"--Specifies the top and bottom margin for the outside of the applet.

10.  WIDTH="..."--Specifies the width of the applet either in pixel or in a percentage of the screen.

Parameters:
These are the applet-specific parameters that are passed as arguments to the program. They are specified as tags within the APPLET tag as follows:
<PARAM NAME="..." VALUE="..." >

 

Attributes:

1.     AUTOSTART="..."--Specifies whether the file starts playing right away or not. Possible values are "TRUE" or "FALSE".

2.     HIGHT="..."--Specifies the height of the display in number of pixels or % of screen.

3.     LOOP="..."--Specifies whether the file repeats or not. Possible values are "TRUE" or "FALSE".

4.     NAME="..."--Specifies the name of the object, in case there are other objects that refer to this one.

5.     SRC="..."--Specifies the location of the object file.

6.     WIDTH="..."--Specifies the width of the display either in pixel or in a percentage of the screen.

 

Attributes:

1.     LANGUAGE="..."--Specifies which language is being used in the script such as "VBScript" or "JavaScript".

2.     SRC="..."--Specifies the location of a file containing the script. This can be used if you don't want the code to be on the same HTML file.

 

Links:

Attributes:

1.     HREF="..."--Specifies the URL of the document to be linked to.

2.     NAME="..."--Specifies the name of the anchor you are creating.

3.     onClick="--Specifies a script to be activated when the mouse is clicked.

4.     onMouseOver="--Specifies a script to be activated when the mouse is moved over the link.

5.     REL="..."--Specifies a relative relationship.

6.     REV="..."--Specifies the reverse relationship.

7.     TARGET="..."--Specifies which window the link will be loaded into. The target can be a name of a frame that you specified in the FRAME tag or one of the following:

Values:

1.      "_blank"--Loads the link into a new blank window.

2.      "_parent"--Loads the link into the immediate parent of the document the link is in.

3.      "_self"--Loads the link into the same window. (default)

4.      "_top"--Loads the link into the full body of the current window.

8.     TITLE="..."--Specifies the title that appears when the link is selected, but not yet clicked.

Lists:

Attributes:

1.     TYPE="..."--Specifies the type of bullet used to label the item. Possible values are: DISC, CIRCLE, SQUARE, A, a, I, i, 1.

2.     VALUE="..."--Specifies the number assigned to the item.

 

Attributes:

1.     TYPE="..."--Specifies the type of numbering used to label the item. Possible values are: A, a, I, i, 1.

2.     START="..."--Specifies the starting value for the numbering.

 

Attributes:

1.     TYPE="..."--Specifies the type of bullet used to label the item. Possible values are: DISC, CIRCLE, SQUARE.

 

Frames:

Attributes:

1.     BORDER="..."--Specifies the width (in pixels) of the border drawn around the frames.(Netscape)

2.     COLS="..."--Creates the frames as columns and specifies the width of each column. Width of the columns can be set using percentages (%), pixels, or relative size (*). For example, if you want your frames to be 3 equally sized columns, you would use: COLS=33%,33%,*

3.     FRAMEBORDER="..."--Specifies whether or not a 3-D border is displayed around the frames. possible values are 0 (no border) or 1 (default).(IE)

4.     FRAMESPACING="..."--Specifies in pixels, the amount of space between the frames.

5.     ROWS="..."--Creates the frames as rows and specifies the width of each row. width of the rows can be set using percentages (%), pixels, or relative size (*). For example, if you want a small frame at the top of your page and one large frame below that, you might use: ROWS=15%,*

6.     SCROLLING="..."--Determines whether or not scroll bars are displayed on all the frames. Possible values are "yes", "no", and "auto".

 

Attributes:

1.     BORDER="..."--Specifies the width (in pixels) of the border drawn around the frame.(Netscape)

2.     FRAMEBORDER="..."--Specifies whether or not a 3-D border is displayed around the frame. possible values are 0 (no border) or 1 (default).(IE)

3.     MARGINHEIGHT="..."--Specifies the top and bottom margins of the frame in pixels.

4.     MARGINWIDTH="..."--Specifies the right and left margins of the frame in pixels.

5.     NAME="..."--Defines a target name for the frame.

6.     NORESIZE--Prevents the frame from being resized by the user

7.     SCROLLING="..."--Determines whether or not scroll bars are displayed along the frame. Possible values are "yes", "no", and "auto".

8.     SRC="..."--Specifies the source file for the frame.

 

Attributes:

1.     ALIGN="..."--Specifies the alignment of the floating frame and surrounding text. Possible values are TOP, MIDDLE, BOTTOM, LEFT, and RIGHT.

2.     FRAMEBORDER="..."--Specifies whether or not a 3-D border is displayed around the frame. possible values are 0 (no border) or 1 (default)

3.     HEIGHT="..."--Specifies the height of the floating frame.

4.     MARGINHEIGHT="..."--Specifies the top and bottom margins of the floating frame in pixels.

5.     MARGINWIDTH="..."--Specifies the right and left margins of the floating frame in pixels.

6.     NAME="..."--Defines a target name for the floating frame.

7.     NORESIZE--Prevents the frame from being resized by the user

8.     SCROLLING="..."--Determines whether or not scroll bars are displayed along the frame. Possible values are "yes" and "no".

9.     SRC="..."--Specifies the source file for the floating frame.

10.  WIDTH="..."--Specifies the width of the floating frame.

 

Tables:

Attributes:

1.     BORDER="..."--Specifies the width of the border around the table. If set to 0, there will be no border.

2.     BACKGROUND="..."--Specifies the address of an image to be tiled as background.(IE)

3.     BGCOLOR="..."--Specifies the background color of the table.

4.     BORDERCOLOR="..."--Specifies the border color of the table.

5.     BORDERCOLORLIGHT="..."--Specifies the lighter color used in creating the 3D borders independently.(IE)

6.     BORDERCOLORDARK="..."--Specifies the darker color used in creating the 3D borders independently.(IE)

7.     WIDTH="..."--Specifies the width of the table on the page.

8.     CELLSPACING="..."--Specifies the amount of space between the cells in the table.

9.     CELLPADDING="..."--Specifies the amount of space between the edges of the cell and the text inside.

10.  FRAME="..."--Specifies which sides of the outer border of the table are displayed.(IE)

Possible types:

1.      VOID--No outside borders are displayed.

2.      ABOVE--Displays a border on the top side of the table.

3.      BELOW--Displays a border on the bottom side of the table.

4.      HSIDES--Displays the top and bottom borders of the table.

5.      LHS--Displays the left-hand side border.

6.      RHS--Displays the right-hand side border.

7.      VSIDES--Displays the right and left side borders.

8.      BOX--Displays a border on all sides of the table.

9.      BORDER--Displays a border on all sides of the table.

 

11.  HEIGHT="..."--Specifies the height of the table on the page.

12.  RULES="..."--Specifies which inner borders of the table are displayed.(IE)

Possible types:

1.      NONE--No inside borders are displayed.

2.      GROUPS--Displays inner borders between the various table groups such as THEAD, TFOOT, TBODY, and COLGROUP groups.

3.      ROWS--Displays inner borders between the table rows.

4.      COLS--Displays inner borders between the table columns.

5.      ALL--Displays inner borders between all rows and columns.

 

Attributes:

1.     ALIGN="..."--Specifies the position of the caption. Possible values are LEFT, RIGHT, BOTTOM, or TOP.

 

Attributes:

1.     ALIGN="..."--Specifies the horizontal alignment of the row contents. Possible values are LEFT, RIGHT, and CENTER.

2.     BGCOLOR="..."--Specifies the background color for the row.

3.     BORDERCOLOR="..."--Specifies the border color of the row.

4.     BORDERCOLORLIGHT="..."--Specifies the lighter color used in creating the 3D borders independently.(IE)

5.     BORDERCOLORDARK="..."--Specifies the darker color used in creating the 3D borders independently.(IE)

6.     VALIGN="..."--Specifies the vertical alignment of the row contents. Possible values are TOP, MIDDLE, BOTTOM, and BASELINE.

7.     HEIGHT="..."--Specifies the height of the cell.

 

Attributes:

1.     ALIGN="..."--Specifies the horizontal alignment of the cell contents. Possible values are LEFT, RIGHT, and CENTER.

2.     NOWRAP--Prevents word wrapping within the cell

3.     BGCOLOR="..."--Specifies the background color for the cell.

4.     BACKGROUND="..."--Specifies the address of an image to be tiled as background.(IE)

5.     BORDERCOLOR="..."--Specifies the border color of the cell.

6.     BORDERCOLORLIGHT="..."--Specifies the lighter color used in creating the 3D borders independently.(IE)

7.     BORDERCOLORDARK="..."--Specifies the darker color used in creating the 3D borders independently.(IE)

8.     VALIGN="..."--Specifies the vertical alignment of the cell contents. Possible values are TOP, MIDDLE, BOTTOM, and BASELINE.

9.     ROWSPAN="..."--Specifies the number of rows the cell will span.

10.  COLSPAN="..."--Specifies the number of columns the cell will span.

11.  WIDTH="..."--Specifies the width of the cell.

12.  HEIGHT="..."--Specifies the height of the cell.

 

Attributes:

1.     BACKGROUND="..."--Specifies the address of an image to be tiled as background. (IE)

2.     BGCOLOR="..."--Specifies the background color for the individual cell.

3.     BORDERCOLOR="..."--Specifies the border color of the cell.

4.     BORDERCOLORLIGHT="..."--Specifies the lighter color used in creating the 3D borders independently.(IE)

5.     BORDERCOLORDARK="..."--Specifies the darker color used in creating the 3D borders independently.(IE)

6.     ALIGN="..."--Specifies the horizontal alignment of the cell contents. Possible values are LEFT, RIGHT, and CENTER.

7.     NOWRAP--Prevents word wrapping within the cell

8.     VALIGN="..."--Specifies the vertical alignment of the cell contents. Possible values are TOP, MIDDLE, BOTTOM, and BASELINE.

9.     ROWSPAN="..."--Specifies the number of rows the cell will span.

10.  COLSPAN="..."--Specifies the number of columns the cell will span.

11.  WIDTH="..."--Specifies the width of the cell.

12.  HEIGHT="..."--Specifies the height of the cell.

 

Attributes:

1.     ALIGN="..."--Specifies the position of the text within the cells of the Columns. Possible values are CENTER, LEFT, RIGHT, BOTTOM, or TOP.

2.     SPAN="..."--Specifies the number of columns for which these attributes will apply.

 

Attributes:

1.     ALIGN="..."--Specifies the position of the text within the cells of the Column. Possible values are CENTER, LEFT, RIGHT, BOTTOM, or TOP.

2.     SPAN="..."--Specifies the number of columns for which these attributes will apply.

Forms:

Attributes:

1.     ACTION="..."--Specifies the address to be used in carrying out the action of the form. Usually the address of the CGI file. You can also specify a mailto address to have the contents of the form emailed to you instead of getting passed to the server. (in future browsers)

2.     METHOD="..."--Specifies the method used by the server in sending the form information. Possible values are POST or GET. When GET is used, the server simply appends the arguments to the end of the action address. With POST, the information is sent as an HTTP post transaction.

3.     TARGET="..."--Specifies which window the result of the form will be loaded into. The target can be a name of a frame that you specified in the FRAME tag or one of the following:

Values:

1.      "_blank"--Loads the result into a new blank window.

2.      "_parent"--Loads the result into the immediate parent of the document the form is in.

3.      "_self"--Loads the result into the same window. (default)

4.      "_top"--Loads the result into the full body of the current window.

4.     ENCTYPE="..."--For future browser. Specifies the type of encoding to use on the form information.

 

Attributes:

1.     ALIGN="..."--If the TYPE is IMAGE, then this specifies the alignment of the surrounding text with the image. Possible values are TOP, MIDDLE, BOTTOM, LEFT, or RIGHT.

2.     CHECKED--Use this attribute in a RADIO or CHECKBOX type, and it will be pre-selected when the form loads.

3.     MAXLENGTH="..."--Specifies the maximum number of characters that can be entered in a text input.

4.     NAME="..."--Specifies the name of the control or input area. (Part of the NAME/VALUE pair)

5.     SIZE="..."--Specifies the size of the text entry area that is displayed by the browser.

6.     SRC="..."--If the TYPE is IMAGE, then this specifies the address of the image to be used.

7.     VALUE="..."--Specifies the value to be submitted along with the corresponding name(Part of the NAME/VALUE pair). Specifies the default text string for TEXT. For RESET and SUBMIT, this specifies the text string to be displayed on the 3-D button.

8.     TYPE="..."--Specifies the type of control being used.

Possible types:

1.      CHECKBOX--Creates a checkbox. If the user checks it, the corresponding name/value pair is sent to the server.

2.      HIDDEN--Nothing is displayed by the browser, but the information is still sent to the server.

3.      IMAGE--Like the SUBMIT type, you can have the form sent immediately when the user clicks on an image. Along with the normal information, when a from is submitted by clicking on an image, the coordinates of the clicked point (measured in pixels from the upper-left corner of the image) are also sent. The x-coordinate is submitted with a ".x" appended to the name and the y-coordinate has a ".y" appended to the name.

4.      PASSWORD--Creates a single line entry text box just like the TEXT type, however, user input is not echoed on the screen.

5.      RADIO--Creates a radio list of alternatives of which only one can be selected. Each alternative must have the same name, but different values can be assigned to each.

6.      RESET--Creates a 3-D button that clears the entire form to original values when clicked. You can give the button a name by using the VALUE attribute.

7.      SUBMIT--Creates a 3-D button that submits the form when clicked. You can give the button a name by using the VALUE attribute.

8.      TEXT--Creates a single line text entry box. You can specify the size of the text box by using the SIZE attribute.

 

Attributes:

1.     MULTIPLE--Specifies that multiple items may be selected.

2.     NAME="..."--Specifies the name of the list(Part of the NAME/VALUE pair).

3.     SIZE="..."--Specifies how many items should be visible.

<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.

1.      VALUE="..."--Specifies the value to be returned (Part of the NAME/VALUE pair).

2.      SELECTED--This item will already be highlighted when the page loads.

 

Attributes:

1.     COLS="..."--Specifies how wide the text box will be.

2.     ROWS="..."--Specifies how high the text box will be.

3.     NAME="..."--Specifies the name of the text box for use by the program that is processing the form.

4.     WRAP="..."--Specifies how text will wrap. Possible values are "HARD", "SOFT", or "NONE".

Style Sheets:

Style Sheets are a new way to easily and effectively customize web pages in ways that were not possible before. You will be able to specify margins, indents, font faces, and other features to gain control over the exact presentation of your document.

Style Sheet, as designed by the World Wide Web Consortium, are new to HTML and so far only supported be Microsoft's Internet Explorer 3.0. However, Netscape and other browsers will definitely support these new elements in future releases so it is a good idea to get started on using Style Sheets now.

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.

1.     background -- Specifies a background color or image.

§        Values:  URL|RGB triplet

§        Example:  BODY {background: #FFFFFF}

2.     color -- Specifies the color of the text.

§        Values:  RGB triplet

§        Example:  H4 {color: #000000}

3.     font-family -- Specifies the typeface.

§        Values:  typeface name or list of names

§        Example:  P {font-family: Arial, Helvetica, "Courier New"}

4.     font-size -- Specifies the size of the text.

§        Values:  pt (points)|in (inches)|cm (centimeters)|px (pixels)|% (percentage)

§        Example:  A:visited {font-size: 14pt}

5.     font-style -- Specifies the style of the text.

§        Values:  italic|normal|oblique|small caps

§        Example:  H3 {font-style: italic}

6.     font-weight -- Specifies the thickness of the text.

§        Values:  extra-light|light|demi-light|medium|demi-bold|extra-bold

§        Example:  H2 {font-weight: bold}

7.     line-height -- Specifies the distance between lines.

§        Values:  pt (points)|in (inches)|cm (centimeters)|px (pixels)|% (percentage)

§        Example:  DIV {line-height: 20pt}

8.     margin-left -- Specifies the left margin.

§        Values:  pt (points)|in (inches)|cm (centimeters)|px (pixels)

§        Example:  BODY {margin-left: 3cm}

9.     margin-right -- Specifies the right margin.

§        Values:  pt (points)|in (inches)|cm (centimeters)|px (pixels)

§        Example:  BODY {margin-right: -0.5in}

10.  margin-top -- Specifies the top margin.

§        Values:  pt (points)|in (inches)|cm (centimeters)|px (pixels)

§        Example:  BODY {margin-top: 20px}

11.  text-align -- Specifies the justification of the text.

§        Values:  left|center|right

§        Example:  H1 {text-align: center}

12.  text-decoration -- Specifies certain text effects.

§        Values:  none|italic|underline|line-through|overline|blink

§        Example:  A:link {text-decoration: none}

13.  text-indent -- Specifies the text indentation.

§        Values:  pt (points)|in (inches)|cm (centimeters)|px (pixels)

§        Example:  P {text-indent: 0.5in}

 

1.     Grouping
Certain style definitions can be grouped together in one statement. Instead of using three statements to specify all three margins, you could use the following:
P {margin: 20px 3cm 3cm}
The order is top, right, and left.

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.

2.     Classes
You can also define more than one instance of a tag. For example, say you wanted two H1 headings; one that was red and one that was blue. You could define the two tags like this:
H1.redh {color: #FF0000; font-size: 20pt}
H1.blueh{color: #0000FF; font-size:20pt}
Later you could use them like this:
<H1 CLASS=redh>This will be red< /H1>
<H1 CLASS=blueh>This will be blue< /H1>

General Formatting:

Attributes:

1.     CLEAR="..."--Causes the text to stop flowing around any images.
Possible values are RIGHT, LEFT, or ALL.

 

Attributes:

1.     ALIGN="..."--Sets the alignment of the division. Possible values are "center", "right", or "left".

 

Attributes:

1.     SIZE="..."--Sets the size of the font to any number between 1 and 7 with 3 being default. relative sizes also work, e.g. SIZE=+2 .

2.     COLOR="..."--Specifies the color of the font.

3.     FACE="..."--Specifies the face of the font. A list can be defined (separated by commas) and the browser will use the first one available on that computer.

 

Attributes:

1.     SIZE="..."--Specifies the thickness of the line.

2.     COLOR="..."--Specifies the color of the line.(IE)

3.     WIDTH="..."--Specifies the length of the line as a percentage of the screen. e.g. WIDTH=90% .

4.     ALIGN="..."--Specifies the alignment of the line: RIGHT, LEFT, or CENTER.

5.     NOSHADE--The line is drawn solid.

 

Attributes:

1.     COLS="..."--Specifies the number of columns to use.

2.     GUTTER="..."--Specifies the number of pixels between each column.

3.     WIDTH="..."-- Specifies the width of the columns as a whole.

 

Attributes:

1.     ALIGN="..."--Specifies the alignment for the paragraph. Possible values are "center", "left", or "right".

 

Attributes:

1.     ALIGN="..."--When TYPE=BLOCK, this specifies the alignment of the surrounding text.

Values:

1.      RIGHT or LEFT--Aligns the block of space to the specified side of the page, and all text is wrapped around the block.

2.      TOP, MIDDLE, BOTTOM, TEXTTOP, ABSMIDDLE, BASELINE, and ABSBOTTOM--Specifies the vertical alignment of the block of space with other items on the same line.

2.     HEIGHT="..."--When TYPE=BLOCK, this specifies the height of the block.

3.     SIZE="..."--When TYPE=HORIZONTAL, or VERTICAL, this specifies the size of the space.

4.     TYPE="..."--Specifies the type of space being inserted.

Values:

1.      HORIZONTAL--Inserts blank spaces between words.

2.      VERTICAL--Inserts spaces between two lines.

3.      BLOCK--Inserts a rectangular block of space, much like the IMG tag.

5.     WIDTH="..."--When TYPE=BLOCK, this specifies the width of the block.