Scrolling Text
This page contains HTML code for creating scrolling text.
You can create scrolling text in HTML using <marquee> tags. 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.
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 |
|---|---|
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 |
|---|---|
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 |
|---|---|
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 |
|---|---|
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 |
|---|---|
Usability of Marquees
You should be careful when using marquees in HTML. Many web users dislike websites that contain scrolling text and other elements, so try to use them tastefully :)
Also note that the <marquee> tag is not part of the official HTML specification. Having said that, it is recognized by most major browsers.
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: