HTML Marquee Code

You can create an HTML marquee (i.e. scrolling text or scrolling images) by using the <marquee> tag. You can make the text/images scroll from right to left, left to right, top to bottom, or bottom to top.

The <marquee> tag is non-standard HTML. Despite this, it has enjoyed widespread browser support. For a standards-compliant method, see CSS Marquees.

Example Marquee Code

Note that if you can't view the examples, it's likely that your browser doesn't support the <marquee> tag.

Continuous scrolling text:

This marquee causes the text to scroll continuously from right to left. Once it disappears from the left, it re-appears from the right.

Slide-in text:

This text slides in from the right, then stays where it is. You will need to refresh this page to see the effect again.

Text bouncing back and forth:

Text Scrolling Upwards:

Change the Scrolling Speed:

Scrolling Images:

Simply replace the src="... part with the location of your own image.

Images & Text (Both Scrolling):

Simply add your text under the image tag (but still within the marquee tags).

Cool Effects with Marquees!

You can use HTML marquees for some cool effects. Check out this falling text (generated with the Falling Text Generator)...

Marquee effects... cool!Marquee effects... cool!...cool!Marquee effects... cool!Marquee effects... cool!Marquee effects... cool!Marquee effects... cool!Marquees...Marquee effects... cool!Marquee effects... cool!Marquee effects... cool!Marquee effects... cool!Marquee effects... cool!...effects...Marquee effects... cool!Marquee effects... cool!Marquee effects... cool!Marquee effects... cool!Marquee effects... cool!Marquee effects... cool!Marquee effects... cool!

CSS Marquees

The above examples use the HTML <marquee> tag to create the marquee effect. Although this tag has enjoyed widespread browser support, it is actually non-standard HTML. The <marquee> element is not included in the official HTML specifications.

It is therefore recommended that you use CSS marquees instead.

These are standards-compliant as they are achieved by using CSS animations (which were introduced in CSS 3 — the latest version of Cascading Style Sheets).