Fandom

Marquee

648pages on
this wiki
Add New Page
Comments0 Share

This non-standard element is not recommended. Authors should generally find an alternative way to accomplish the same task while adhering to all best practices, or simply do without it if it is unimportant.


The HTML <marquee></marquee> element is commonly a favorite tag amongst some users. This element allows an area of text to be scrolled in different ways, either direction, speed, etc. This element is a non-standard element, which means that it may not be supported (properly) in browsers. Wikia does not support <marquee>.

AttributesEdit

Attribute Value Description
behavior scroll
slide
alternate
Sets how the text is scrolled. If no value is specified, the default value is scroll.
bgcolor color Sets the background color using HTML color codes or valid color names.
direction left
right
up
down
Sets the direction of the scrolling. If no value is specified, the default value is left.
height number Sets the height of the scrolling area in pixels or percentage value.
hspace number Sets the horizontal margin. (Requires Gecko)
loop number Sets the number of times the text will scroll. If no value is specified, the default value is −1, which means the text will scroll continuously. (Requires Gecko)
scrollamount number Sets the amount of scrolling at each interval in pixels. The default value is 6.
scrolldelay number Sets the interval between each scroll movement in milliseconds. The default value is 85. Note that any value smaller than 60 is ignored and will result in a 60 value instead, unless the truespeed attribute is specified.
truespeed Boolean By default, the scrolldelay attribute values lower than 60 are ignored. If this attribute is present, those values are not ignored. (Requires Gecko)
vspace number Sets the vertical margin in pixels or percentage value. (Requires Gecko)
width number Sets the width in pixels or percentage value.


HTML example:

<marquee>Scrolling text.</marquee>


Image example:

Marquee

A simulation of the <marquee> element.

See AlsoEdit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.