Syntax
<marquee>...</marquee>
Attribute Specifications
ALIGN=top|middle|bottom (positions the marquee display box relative to the current text)
BEHAVIOR=scroll|slide|alternate (controls the behaviour of the displayed text)
BGCOLOR=Color (background colour for marquee)
DIRECTION=right|left (indicates at which side the text should first be displayed)
WIDTH=Length (frame width)
HEIGHT=Length (frame height)
HSPACE=Length (controls the horizontal space around the display box)
VSPACE=Length (controls the vertical space around the display box)
LOOP=number (controls the number of display cycles. The values -1 and infinite both mean continue indefinitely)
SCROLLAMOUNT=number (controls the amount of movement (in pixels))
SCROLLDELAY=number (controls the delay (in milliseconds))
common attributes
Contents:
In HTML 4.0 Strict: one or more Block-level elements or SCRIPT
In HTML 4.0 Transitional: Inline elements or Block-level elements
Contained in:
APPLET, BLOCKQUOTE, BODY, BUTTON, CENTER, DD, DEL, DIV, FIELDSET, FORM, IFRAME, INS, LI, MAP, NOFRAMES, NOSCRIPT, OBJECT, TD, TH
<marquee>this text slides</marquee>
would be displayed as:<marquee scrollamount="2" scrolldelay="1">this text slides</marquee>
would be displayed as:<marquee scrollamount="2" scrolldelay="1" behavior="alternate">this text slides</marquee>
would be displayed as: