
The Complete Idiot's HTML Tag Reference
| Index
| Previous Tag: <MAP>
| Next Tag: <MENU>
|
<MARQUEE>
Inserts a box that contains scrolling text.
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
Notes:
- This tag requires the </MARQUEE> end tag.
Attributes:
- ALIGN
= "Text"
The alignment of text that follows the marquee.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
Notes:
-
Possible values: LEFT, RIGHT, CENTER, TOP, BOTTOM.
- BEHAVIOR
= "Text"
Determines how the text moves.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
Notes:
-
There are three choices:
SCROLL: The text enters from one side of the box, exits the opposite side, and repeats. (This is the default.)
SLIDE: The text enters from one side of the box and then stops at the opposite side.
ALTERNATE: The text enters from one side of the box, bounces off the opposite side, and repeats.
- BGCOLOR
= "Color value"
The color to use for the marquee background.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
Notes:
- CLASS
= "Text"
The style sheet class used by the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
3.0 and later |
Not supported |
Notes:
-
You can specify two or more classes; be sure to separate each class name with a space.
- DIRECTION
= "Text"
The direction the text moves
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
Notes:
-
Possible values: LEFT (the default), RIGHT, DOWN, UP.
- HEIGHT
= Positive integer
The marquee's height, in pixels.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
- HSPACE
= Positive integer
The horizontal space, in pixels, that is added to the left and right sides of the marquee.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
- ID
= "Text"
An alphanumeric string that uniquely identifies the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
3.0 and later |
Not supported |
Notes:
-
Although you can use letters and numbers for the ID, the first character must be a letter.
- LANG
= "Text"
The language used by the tag's attribute values and text content.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
4.0 and later |
Not supported |
- LOOP
= Positive integer
The number of times the text enters the marquee.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
Notes:
-
The default value is LOOP=INFINITE.
- SCROLLAMOUNT
= Positive integer
The number of pixels the text moves with each iteration.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
Notes:
-
The higher the value you use, the faster the text scrolls.
- SCROLLDELAY
= Positive integer
The delay, in milliseconds, between each loop.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
- STYLE
= "Text"
The style or styles to use with the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
3.0 and later |
Not supported |
Notes:
-
If you enter multiple style properties, separate each one with a semi-colon (;).
- TRUESPEED
Tells the browser to use the exact SCROLLDELAY value and not a rounded value.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
4.0 and later |
Not supported |
- VSPACE
= Positive integer
The vertical space, in pixels, that is added to the top and bottom of the marquee.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
- WIDTH
= Positive integer
The marquee's width, in pixels.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
Example:
<MARQUEE BEHAVIOR="SCROLL" DIRECTION="LEFT" SCROLLAMOUNT=5>
Attention Kmart shoppers...
</MARQUEE><BR>
<MARQUEE BEHAVIOR="SLIDE" DIRECTION="RIGHT" SCROLLAMOUNT=10>
Look at me go!
</MARQUEE><BR>
<MARQUEE BEHAVIOR="ALTERNATE" DIRECTION="UP" SCROLLAMOUNT=1>
Up and down like a, well, you know.
</MARQUEE>
How It Looks:
| Index
| Previous Tag: <MAP>
| Next Tag: <MENU>
|
|