HTML Scrolling Text

This page contains HTML code for creating scrolling text.

You can create scrolling text in HTML using the <marquee> tag. You can make your text scroll from right to left. You can make it scroll left to right. You can make it bounce back and forth. You can make it scroll up or down. You can even make your text zoom in from the side and stay in the same place.

Note that the <marquee> tag is actually non-standard HTML, and it is better to use the CSS method. See CSS scrolling text for the CSS method (recommended).

Right to Left

To make your text scroll left (i.e. from right to left), use behavior="scroll" and direction="left". Like this:

Source Code

Result

Here is some scrolling text... right to left!

Left to Right

To make your text scroll right (i.e. from left to right), use behavior="scroll" and direction="right". Like this:

Source Code

Result

Here is some scrolling text... left to right!

Scroll Up

To make your text scroll up (i.e. from bottom to top), use behavior="scroll" and direction="up". Like this:

Source Code

Result

Here is some scrolling text... going up!

Scroll Down

To make your text scroll down (i.e. from top to bottom), use behavior="scroll" and direction="down". Like this:

Source Code

Result

Here is some scrolling text... going down!

Speed

You can change the scrolling speed of your marquee. For example, scrollamount="1" sets the marquee to a very slow scroll, while scrollamount="20" will make it faster. You can use whatever number you like though. Like this:

Source Code

Result

Very slow...Faster...Fast...Lightning!

More Marquee Codes

You can do much more with HTML marquees than is covered on this page. Here's the full list of marquee codes on this website: