| A - anchor |
| The A (anchor) tag begins a location reference. This can NAME the current location, or provide a HREF (html reference) to another file.
Examples: This example begins a section called "reference name". You can link to a reference in the same file using:
<A HREF="#reference name">link text</A> The previous example would appear as link text, and when clicked would jump to the "reference name" locator whenever the user clicks "link text". To link to a specific section of another page, you would use:
<A HREF="http://www.webaddress.ext/filename.html#reference name">link text</A> You can link to another file using this format:
<A HREF="http://www.webaddress.ext/filename.html">link text</A> You can also use the A tag to TARGET which window you want the link to open in. |
| ADDRESS, CITE, DFN, EM, I |
| The ADDRESS (CITE, DFN, EM, or I can also be used) tag renders text in italics.
Example: This example yields italicised text. |
| AREA |
| Specifies the shape of a "hot spot" in a client-side image map (client-side image maps are pictures which cause the browser to jump to different URLs depending on where you click).
COORDS="x1, y1, x2, y2, ..."
HREF="url"
NOHREF
SHAPE="shape"
Example: |
| B, STRONG |
| The B (or STRONG) tag renders text in boldface.
Example: This example yields boldface text. |
| BASE |
| Specifies the document's full URL in case the document gets read out of context and the reader wants to refer to the original. Used within the HEAD section.
Example: You can also specify the TARGET window for links with this tag. |
| BASEFONT |
| Specifies the default font size for the document. You can then set relative font sizes (FONT SIZE=-4) based on this value.
Example: |
| BGSOUND |
| The BGSOUND tag allows you to create pages with background sounds (.au, .mid, or .wav format).
SRC
LOOP
<BGSOUND SRC="file.mid" LOOP=5> |
| BLINK* |
| Makes text . *No longer supported by many browsers (it is tacky!)
Example: This example yields . |
| BLOCKQUOTE |
| The BLOCKQUOTE tag indents text from both the right and left margins. |
| BODY |
| The BODY tag formats how your hypertext document appears in the browser. Use these keywords with the BODY tag:
BACKGROUND
BGCOLOR
BGPROPERTIES
LEFTMARGIN, RIGHTMARGIN, TOPMARGIN, BOTTOMMARGIN
LINK, ALINK, VLINK
SCROLL
TEXT
Example: This sets the body background to an image in "file.jpg" with black text and defines colors for links.
|
| BR |
| Inserts a line break.
CLEAR <IMG SRC="sample.gif" ALIGN=LEFT>Here's some text to the right of a picture.<BR CLEAR=LEFT>Here's some text beneath the picture.
|
| CAPTION |
| Specifies a caption for a table and must be used within the TABLE tag.
ALIGN, VALIGN <TABLE><CAPTION ALIGN=CENTER VALIGN=BOTTOM>This caption will appear centered below and centered between the left and right borders of the table.</CAPTION><TR><TD>This is a cell in the table.</TD></TR></TABLE>
|
| CENTER |
| Causes subsequent text and images to be centered.
|
| CODE or SAMP |
| Specifies a code sample. Renders text in a small font. (If no FONT FACE is specified, the font used is fixed-width.)
|
| COMMENT |
| Indicates a comment. The text between the tags is ignored, unless it contains HTML code.
|
| DD - definition list definition |
| Indicates that the text is a definition of a term, and should therefore be displayed in the right-hand column of a definition list.
|
| DIR - directory list |
| Specifies that the following block consists of individual items, each beginning with an <LI> tag and none containing more than 20 characters, which should be displayed in columns.
Example:
Yields: |
| DL - definition list |
| Specifies that the following block is a definition list: that is, an automatically formatted two-column list with terms on the left and their definitions on the right.
Example:
Appears as:
|
| DT - definition term |
| Indicates that the text is a term to be defined, and should therefore be displayed in the left-hand column of a definition list.
|
| FONT |
| Specifies font options.
COLOR
FACE
SIZE
Example: This text will be in red, either Arial, Lucida Sans, or Times Roman, depending on which fonts you have installed on your system, and size 3. |
| FORM |
| Specifices a form.
ACTION
METHOD <FORM ACTION="http:// www.sample.com/bin/search" METHOD=GET></FORM> |
| FRAME, FRAMESET |
| Frames are generated by three things: FRAMESET tags, FRAME tags, and Frame
Documents.
FRAME DOCUMENT
Example:
FRAME SYNTAX
<FRAMESET>
The FRAMESET tag can be nested inside other FRAMESET tags. In this case the complete subframe is placed in the space that would be used for the corresponding frame if this had been a FRAME tag instead of a nested FRAMESET.
<FRAME>
<NOFRAMES>
(c) 1996 Netscape Communications Corporation |
| H1, H2, H3, H4, H5, H6, H7 |
| Specifies headings. There are seven possible levels, H1 is the largest.
ALIGN
Example:
Main Heading TextCentered Subheading Text
|
| HEAD |
| The HEAD tag defines the document header, containing information the browser uses to format the document such as TITLE and META.
|
| HR |
| Draws a horizontal rule. If no arguments are specified, the rule will be the width of the screen.
ALIGN
COLOR
NOSHADE
SIZE
WIDTH
Example:
|
| HTML |
| A HTML tag defines (begins & ends) a hyper-text markup language document.
|
| IMG - image |
| Specifies an in-line multimedia image (still or video).
ALIGN
ALT
BORDER
CONTROLS
DYNSRC <IMG SRC="sample.gif" DYNSRC="test.avi" CONTROLS> If your browser Sources inline video, you will see the movie Test.avi; otherwise you will see the picture Sample.gif.
HEIGHT, WIDTH
HSPACE, VSPACE
ISMAP
LOOP
SRC
START
USEMAP
|
| INPUT |
| Defines a form component.
ALIGN
CHECKED
MAXLENGTH
NAME
SIZE
SRC
TYPE
VALUE
|
| ISINDEX |
| Indicates the presence of a searchable index. With no arguments, ISINDEX displays the following message followed by a textbox: "You can search this index. Type the keyword(s) you want to search for:" When the user enters text and presses ENTER, that text is posted back to the page's URL as a query. Usually placed within the HEAD section.
ACTION
PROMPT <ISINDEX ACTION="search" PROMPT="Enter a keyword here">
|
| KBD - keyboard text |
| Formats text in fixed-width and boldface type.
Example: Type this text would appear.
|
| LI - list item |
| Specifies a new list item for DIR, MENU, OL, or UL list blocks.
TYPE
VALUE
<OL><LI>This is list item one.
|
| LISTING, PRE, TT, or XMP |
| Renders text in fixed-width type. LISTING, PRE, and XMP also instert linebreaks.
Example: This example makes the Typewriter Text used in this document for examples.
|
| MAP |
| Specifies a collection of hot spots for a client-side image map.
NAME
<MAP NAME="imagemap">
|
| MARQUEE |
| The new MARQUEE tag enables you to create a scrolling text marquee. Here is an example of one:
The HTML entry used to insert the marquee above is: Marquees can be left- or right-aligned, like images, and have a variety of attributes to control them.
ALIGN
BEHAVIOR
BGCOLOR
DIRECTION
HEIGHT
HSPACE
LOOP
SCROLLAMOUNT
SCROLLDELAY
VSPACE
WIDTH
|
| MENU |
| Denotes a list of items. Used with <LI>.
Example:
Yields:
|
| META |
| The META tag is used within the HEAD section to define variables or specify other information for the web browser.
HTTP-EQUIV, CONTENT
|
| NOBR |
| Turns off line breaking.
Example:
|
| OL |
| Specifies an ordered (numbered) list. Used with LI.
START
TYPE
Example:
|
| P |
| Denotes a paragraph break. You may use <P> alone at the end of a line or denote paragraphs by <P>This is a paragraph. </P>.
ALIGN=CENTER <P ALIGN=CENTER>This paragraph should be centered.</P>
This paragraph should be centered. |
| PLAINTEXT |
| Renders text in fixed-width type without processing tags Also turns off HTML parsing until the </PLAINTEXT> tag.
|
| S, STRIKE |
| Renders text in
|
| STYLE |
| The STYLE tag can be used to define custom styles. Applied to the entire document. Place the STYLE tag after HEAD and before BODY.
Example: This example makes the anchors appear without underlines, similar to this document.
|
| TABLE, TR, TD |
| The TABLE tag defines a table, which you format using TR (to create rows) and TD (to create cells). You can also specify a CAPTION. Many of these options work with each of the TABLE, TR, and TD commands; TD attributes override TR and TABLE attributes, and TR attributes override the TABLE attributes.
ALIGN
BGCOLOR
BORDER
BORDERCOLOR
BORDERCOLORLIGHT, BORDERCOLORDARK
CELLPADDING
CELLSPACING
VALIGN
|
| TARGET |
| This feature gives the document writer a little control over where the data appears when a user clicks on a link in their document. Previously when a user clicked on a link, the new document either appeared in the window the user had clicked in, or alternately (and under the user's control) it appeared in a new window. Targeting windows allows the document writer to assign names to specific windows, and target certain documents to always appear in the window bearing the matching name.
A name is assigned to a window in one of three ways:
Example:
TARGET in an A tag.
TARGET in the BASE tag.
TARGET in the AREA tag.
TARGET in the FORM tag. Allowed TARGET names The window name specified by a TARGET attribute must begin with an alpha-numeric character to be valid. All other window names will be ignored. Exception: There are magic target names that all begin with the underscore character. Magic TARGET names
TARGET="_blank"
TARGET="_self"
TARGET="_parent"
TARGET="_top"
(c) 1996 Netscape Communications Corporation |
| TITLE |
| Specifies a title for the document, usually displayed as the browser's window caption. Used within the HEAD section.
|
| U |
| Renders text underlined. Can be confused with linked text.
|
| UL |
| Creates an unordered (bulleted) list. Used with LI.
|
| VAR |
| Renders text as a small fixed-width font.
Example: Here's some plain text.
|
| WBR |
| Inserts a soft linebreak in a block of NOBR text.
|