HTML <marquee> Tag
The <marquee> tag created scrolling text or images. It is obsolete: use CSS animations instead.
Description
The <marquee> element creates an area of scrolling text that moves horizontally or vertically across the page. It was a non-standard element introduced by Internet Explorer and became a symbol of 1990s web design. Attributes control the direction (direction), the type of movement (behavior: scroll, slide or alternate), the speed (scrollamount and scrolldelay) and the number of repetitions (loop).
The element is obsolete. Although browsers still support it for compatibility, moving text is hard to read and can be a serious accessibility problem for people with attention or vestibular disorders, and the element cannot be paused by the user. If movement is really needed, use CSS animations, and respect the prefers-reduced-motion media query.
Properties
- Permitted Parents
- Any element that accepts phrasing content
- Content
- Inline and text
- Start/End Tags
- Start tag: required, End tag: required
Example
Attributes
- behavior
-
How the text scrolls.
Possible Values:- scroll
- slide
- alternate
- direction
-
The direction of scrolling.
Possible Values:- left
- right
- up
- down
- scrollamount
-
The distance in pixels the text moves at each step. Default value:
6. - scrolldelay
-
The delay in milliseconds between steps. Default value:
85. - loop
-
The number of times the text scrolls. Default value:
-1(forever).
Global Attributes
The <marquee> tag also supports the Global Attributes in HTML5
Event Attributes
The <marquee> tag also supports the Event Attributes in HTML5
Browser Support
The following information will show you the current browser support for the HTML <marquee> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.
Desktop





Tablets & Mobile





