Favorites

HTML <marquee> Tag

This element is obsolete. Use CSS animations instead.
<marquee>
HTML TagThis tag is supported by all modern browsers.
Deprecated Updated 28th November 2026

The <marquee> tag created scrolling text or images. It is obsolete: use CSS animations instead.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

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

<marquee behavior="alternate" scrollamount="4">This text moves back and forth</marquee>
Open in editor

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.

This tag is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee