Marquee element
The marquee tag is a non-standard HTML element which causes text to scroll up, down, left or right automatically.[src] The tag was first introduced in early versions of Microsoft's Internet Explorer, and was compared to Netscape's blink element, as a proprietary non-standard extension to the HTML standard with usability problems.[src]
The marquee tag is a non-standard HTML element which causes text to scroll up, down, left or right automatically.[src] The tag was first introduced in early versions of Microsoft's Internet Explorer, and was compared to Netscape's blink element, as a proprietary non-standard extension to the HTML standard with usability problems.[src] As with the blink element, marquee-tagged images or text are not always completely visible on rendered pages, making printing such pages an inefficient (if not impossible) task; typically multiple attempts are required to capture all text that could be displayed where messages scroll or blink.[src] The behavior="alternate" version of marquee makes text jitter back and forth but does not obscure any part of it if scrolling widths are set correctly.[src] Because marquee text moves, links within it are more difficult to click than those in static text, depending on the speed and length of the scrolling.[src] Users only get one chance every time it scrolls past.[src] Also, scrolling text too fast can make it unreadable to some people, particularly those with visual impairments.[src] This can easily frustrate users.[src] To combat this, client-side scripting allows marquees to be programmed to stop when the mouse is over them.[src] Loops are counted by each time it reaches each end of the marquee; a loop of 1 is different from "Slide" attribute.[src] when item is being scrolled with "Slide" attribute, item will stop permanently at the end of length of the marquee, displaying the entire item.[src] However, when an item is being scrolled without a "Loop" attribute, the number of scrolls will be repeated according to what number "Loop" is equal to.[src] If "Loop=1" then item will scroll only once and will exit the length of marquee completely, while the item being scrolled will stop would be the same as "Slide".[src] By default, "Loop=infinite" so it is not needed to code the attribute "Loop" if you want a non-stop scroll.[src] Note: "Loop" will be ignored if attribute "Behavior" is coded.[src] Also, if "Behavior=Alternate" and "Loop=2" then item will go from beginning of the Marquee to the end and back to the beginning, counting a round trip as 2 loops.[src] bgcolor : Sets the background color of the marquee.[src] direction : Sets the direction of the marquee box.[src] Values are left, right, up, down where the value indicates the direction of travel.[src] direction=left therefore moves the text from right to left on the screen.[src] width : This sets how wide the marquee should be.[src] loop : This sets how many times the marquee should "Loop" its text.[src] Each trip counts as one loop.[src] scrollamount : This is how many pixels the text moves between "frames".[src] So scrollamount=1 gives the slowest scroll speed.[src] scrolldelay : This sets the amount of time, in milliseconds, between "frames", much like watching a replay of a video where every frame of the video would be paused for x number of milliseconds.[src] "Scrolldelay=1000" means a slow motion where every frame lasts one thousand milliseconds or one second.[src] A marquee element can contain arbitrary HTML, so in addition to text it could move one or more images, movie clips, or animated GIFs.[src] @keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } } .marquee-container { white-space: nowrap; overflow: hidden; position: relative; animation: marquee 10s linear infinite; } .marquee-content { display: inline-block; } The animation, marquee , is defined by its @keyframes to be a simple translation from right to left; it would be possible to reverse the animation by inverting it (from -100% to 100%, for example).[src] The 10s can also be modified to alter its output.[src] The style can then be invoked in HTML: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.[src] ==References==[src]
34 sentences · 34 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Marquee element." encyclopegia.org, 2026, https://encyclopegia.org/wiki/marquee-element. Accessed 03 December 2026.
Chicago
"Marquee element." encyclopegia.org. Accessed December 3, 2026. https://encyclopegia.org/wiki/marquee-element.
APA
encyclopegia.org. (2026). Marquee element. Retrieved December 3, 2026, from https://encyclopegia.org/wiki/marquee-element
Accessed December 3, 2026 · CC BY-SA 4.0 · citation page · JSON