Nonstandard Tags

Here are the few, the proud, the nonstandard tags that have yet to find their way into a DTD. Be sure to keep a close eye on which browser supports which tag (we marked them with N and IE). We give only brief recognition of these tags here. For more info, visit the HTML developer areas of the respective vendor's Web site (we list the URLs in the previous section).

Note that the frame markup is included here because it has yet to be listed in any HTML DTD. Currently, frame markup is listed as a proposed add-on to Cougar, but it may always be the ugly duckling.

<BGSOUND> Background Sound (IE)

Definition:

Links a sound file of .wav, .au or .mid/.midi that is played when the page is accessed.

Attributes:

SRC=URL

Address of the sound file to be played.

LOOP=number/INFINITE

Specifies how many times a sound will loop and replay when activated. If INFINITE is specified, it will loop indefinitely.

TITLE=

The Title attribute is used to provide advisory information.

<BLINK> Blink (N)

Definition:

Causes surrounded text to blink on and off.

Attributes:

None.

<Comment> Comment (IE)

Definition:

Same as the <!-- ... --> tag.

<Frame> Frame (N, IE)

Definition:

Defines a single frame in a frameset. This is not a container, so there is no matching end-tag.

Attributes:

ALIGN=(LEFT|CENTER|RIGHT)

Sets the alignment of the frame or of the surrounding text. The align-type can be one of these values:

TOP: Surrounding text is aligned with the top of the frame.

MIDDLE: Surrounding text is aligned with the middle of the frame.

BOTTOM: Surrounding text is aligned with the bottom of the frame.

LEFT : The frame is drawn as a left-flush frame, and text flows around it.

RIGHT: The frame is drawn as a right-flush frame, and text flows around it.

BORDERCOLOR="color"

Defines the color of the frame border and can be a color name or a #RRGGBB value.

FRAMEBORDER=(1|0) or "YES"|"NO"

Renders a 3-D edge border around the frame. 1 (default) inserts a border; 0 displays no border.

HEIGHT=number | "percent%" & WIDTH=number | "percent%"

Specifies the size at which the element is drawn set in pixels or percentages.

MARGINHEIGHT=number

Controls the margin height (in pixels) for the frame.

MARGINWIDTH=(number|"%")

Controls the margin width (in pixels) for the frame.

NAME="text" | _blank | _parent | _self | _top

Provides a target name for the frame.

NORESIZE

Prevents the user from resizing the frame.

SCROLLING=(yes|no|auto)

Creates a scrolling frame.

SRC="URL"

Displays the source file for the frame.

<Frameset> Frame Setting (N, IE)

Definition:

Hosts the FRAME, FRAMESET, and NOFRAMES elements

Attributes:

BORDER="pixWidth"

Specifies the thickness of frame borders for all frames in a frameset. A setting of BORDER="0" causes all frames in the frameset to have no border between them; the default is 5 pixels. The BORDER tag can be used only on an outermost FRAMESET tag.

BORDERCOLOR="color"

Specifies the color of a frame's borders and uses color name or #RRGGBB value.

COLS=col-widths

Creates a frame document with columns. You can specify the column dimensions by percentage (%), pixels, or a relative size (*). If you use either percentages or relative sizes, it's imperative to enclose the associated values in double quotes because otherwise, these act as reserved HTML characters.

FRAMEBORDER=1|0

Provides the option to display or not display a 3-D border for a frame. 1 (default) sets a frame border; 0 displays no border.

FRAMESPACING=spacing

Creates additional space between frames, in pixels.

ROWS=row-height|%|*

Creates a frame document with rows. You can specify the row dimensions by (%), pixels, or a relative size (*). The asterisk is used to assign the remaining unused portion of the display area.

<Iframe> In-line Floating Frame (IE)

Definition:

Defines a floating frame.

Attributes:

ALIGN=(LEFT|CENTER|RIGHT) and (TOP|MIDDLE|BOTTOM)

Sets the alignment of the frame or of the surrounding text. The align-type can be one of these values:

LEFT: The frame is drawn as a left-flush "floating frame," and text flows around it.

CENTER: The frame is drawn as a centered "floating frame," and text flows around it.

RIGHT: The frame is drawn as a right-flush "floating frame," and text flows around it.

TOP: Surrounding text is aligned with the top of the frame.

MIDDLE: Surrounding text is aligned with the middle of the frame.

BOTTOM: Surrounding text is aligned with the bottom of the frame.

FRAMEBORDER=(1|0)

Renders a 3-D edge border around the frame. 1 (default) inserts a border. 0 displays no border.

HEIGHT=number

Controls the height (in pixels) of the floating frame.

MARGINHEIGHT=number

Controls the margin height (in pixels) for the frame.

MARGINWIDTH=number

Controls the margin width (in pixels) for the frame.

NAME=number

Provides a target name for the frame.

NORESIZE

Prevents the user from resizing the frame.

SCROLLING=(yes|no|)

Creates a scrolling frame.

SRC="URL"

Displays the source file for the frame.

WIDTH=number

Controls the width (in pixels) of the floating frame.

<KEYGEN> Generate Key (N)

Definition:

Used with encryption and forms to provide additional level of security by creating a submission key for form delivery.

Attributes:

NAME="name"

Specifies the name for the name-value pair.

CHALLENGE="challenge"

Specifies the challenge string to be packaged with the public key for use in verification of the form submission. If no challenge string is provided, then it is encoded as an IA5STRING of length zero.

<MARQUEE> Marquee (IE)

Definition:

Creates a scrolling text marquee.

Attributes:

ALIGN=TOP|MIDDLE|BOTTOM

Specifies how text around the marquee will align itself.

BEHAVIOR= SCROLL|SLIDE|ALTERNATE

Specifies the method of text display. SCROLL - normal marquee scrolling: on from left, then off to right, then repeat; SLIDE - text slides from left and stops at the right; ALTERNATE - text bounces between left and right edges.

BGCOLOR=#rrggbb/color name*

Sets color of marquee text.

DIRECTION=LEFT|RIGHT

Sets the directions from where text scrolls.

HEIGHT=number/percent, WIDTH=number/percent

Sets height or width of marquee in pixels or percentage of screen.

HSPACE=number VSPACE=number

Sets blank space in pixels to left/right or above/below of marquee

LOOP=number/INFINITE

Sets the number of times the message repeats the scrolling action.

SCROLLAMOUNT=number

Sets the number of pixels between repeated scrolling messages.

SCROLLDELAY=number

Sets the number of milliseconds delay between next display of the text.

<MULTICOL> Multiple Column Formatting (N)

Definition:

Creates a multiple column display of text.

Attributes:

COLS="number"

Specifies the number of text columns for the text display. Netscape Navigator attempts to flow elements evenly across the columns to make each column be about the same height. Unless the WIDTH attribute is present, column width is adjusted to fill the available view.

GUTTER="gwidth"

Specifies the number of pixels to appear between columns. If it is not specified, Netscape Navigator uses 10.

WIDTH="colwidth"

Specifies the width of each column in the group in pixels. All columns are the same width. If WIDTH is not present, its value is determined by subtracting from the display width the number of pixels that constitute the gutter and then dividing by the number of columns.

<Nobr> No Break (N, IE)

Definition:

Turns off line breaking; renders text without line breaks.

Attributes:

None.

<NOEMBED> Alternate text for plug-ins (N)

Definition:

Provides alternate content for browsers that do not support the plug-in required for a in-line media type.

Attributes:

None.

<NOFRAMES> Alternate text for frames (N, IE)

Definition:

Indicates content viewable only by browsers that do not support frames. Browsers that support frames will not display content between the beginning and ending NOFRAMES tags. Browsers that do not support frames will also not recognize the <NOFRAMES> tag and therefore will interpret the enclosed markup normally. Thus, you can create a page that is compatible with both types of browser by using NOFRAMES.

Attributes:

None.

<NOSCRIPT> Alternate text for JavaScript (N, IE)

Definition:

Provides alternate content for browsers that do not support JavaScript.

Attributes:

None.

<SPACER> Horizontal and Vertical spacing (N)

Definition:

Used to control spacing and layout by forcing white space through the creation of an invisible rectangle similar to a transparent in-line image.

Attributes:

ALIGN="LEFT|RIGHT|TOP|ABSMIDDLE|ABSBOTTOM|TEXTTOP|MIDDLE|BASELINE|BOTTOM"

Applies only when TYPE=BLOCK. Specifies alignment of block to surrounding text. Default is BOTTOM.

HEIGHT="value"

Applies only when TYPE=BLOCK. Specifies the height in pixels.

SIZE="value"

When TYPE=HORIZONTAL, specifies the absolute width of blank space. When TYPE=VERTICAL, specifies the absolute height of blank space.

TYPE="HORIZONTAL"|"VERTICAL"|"BLOCK"

Determines the action of the spacer: space between words (HORIZONTAL), space between lines of text (VERTICAL), or as an invisible image (BLOCK).

WIDTH="value"

Applies only when TYPE=BLOCK. Specifies the width in pixels.

<Strike> Strikeout type (N, IE)

Definition:

Renders enclosed text in strikethrough style. This is the style <S> is based on.

Attributes:

None.

<Wbr> Word Break (N, IE)

Definition:

Inserts a line break in a block of <NOBR> text.

Attributes:

None.


Next Section | HTML Extensions | TOC


E-Mail: HTML for Dummies at html4dum@lanw.com

URL: http://www.lanw.com/extras/html4dum/ch8sec1.htm
Text - Copyright © 1995, 1996, 1997 Ed Tittel & Stephen N. James
For Dummies, the Dummies Man logo and Dummies Press are trademarks or registered trademarks of Wiley Publishing, Inc. Used with Permission.
Web Layout - Copyright © 1997, LANWrights
Revised -- May, 2002 [MCB]