HTML: Marquee

+5

Use of Marquee!

Marquee may be used for cute animations, like these!

:3
:D
:P
Marquee used to be very popular in the beginning of the Internet, since it was easy to use and kinda cool! Now, it is considered "Deprecated" by WHATWG and W3C, yet it's a classic that I hope won't get forgotten.

Program marquee

Now:



<marquee>Text</marquee>


This is how we can get a simple mobile text! The predetermined direction is left-going, but we can make it go up, down, left, and right :)


For that use direction="up|right|down"


<marquee direction="up|right|down">ヽ(•‿•)ノ</marquee>

;)
:v
:O
:/

Attributes:

Behavior=""

bgcolor=""

Behavior="" shows different kinds of movements.

"scroll" is the predetermined value, which makes it go 'pacman'.

There's also "slide", which slides just once.

And there's "alternate", which makes it bounce

Establishes a background color for the text, which is 'moving'; and inside the background, you must set the color with either a name or a hexadecimal code.

XD :c º-º
(╥﹏╥) ¯\_(ツ)_/¯

<marquee>XD</marquee>

<marquee behavior="slide">:c</marquee>

<marquee direction="left" behavior="alternate">º-º</marquee>

<marquee bgcolor="blue">(╥﹏╥)</marquee>

<marquee bgcolor="green">¯\_(ツ)_/¯</marquee>

Height

Width

I won't explain what this does...

Use it mainly with vertical stuff and alternate behaviours.

It supports either numbers or percentages (%).

I won't explain what this does...

Use it mainly with horizontal stuff and alternate behaviours.

It supports either numbers or percentages (%).
^_^
ಠ_ಠ
B)
(╯°□°)╯︵ ┻━┻
._.
-_-

<marquee direction="up" height="120" >o.O</marquee>

<marquee direction="right" width="20" >O.o</marquee>

Scrolldelay="" and  Scrollamount=""

Those control the time of movement, which is done in 'steps'.

Scrollamount is the amount of pixels you the in each step. (predetermined value is 6)

Scrolldelay Sets the velocity of each step.

The predetermined value is 75ms, or in US units, the time that a 9mm bullet travels a third of an American football field.

If you want to use time values lower than 60msc., use "truespeed" along with scrolldelay.

1_1
0':
°.°
BD
(¬_¬)

<marquee direction="up" height="10" scrolldelay="X" scrollamount="X" truespeed>°.°</marquee>

Loop="# or infinite"

This says how many times the marquee will bounce|slide|scroll.

Without a loop, the values of alternate and scroll are infinite, and the times of slide are 1.

Extra:

How did I show the borders where :P bounced?

Simple, established a class="whatever" inside the marquee, and used this code:

<style>

.whatever{

border: solid;

}

</style>

DVD
8 Comments
+2
Level 66
Aug 23, 2025
Informative!
+3
Level 72
Aug 23, 2025
I must say, the DVD animation is quite nice.
+1
Level 61
Aug 23, 2025
Can I use inline CSS to make the marquee border

Also can I make the border rounded but still have the marquee work fine?

+1
Level 52
Aug 23, 2025
You can use inline CSS, style="border: solid;" to work.

Yet, I don't know how to do the rounder borders :(

+1
Level 61
Aug 24, 2025
you can do it iwith border-radius: #px, just wondering if the bouncing would go through the corners or off of them
+1
Level 52
Aug 24, 2025
It goes off them, but don't use pixels, use percentages to do so!
+1
Level 63
Aug 26, 2025
I can tell this feature is deprecated because it doesn't work on my modern browser :( makes this the only time my old, ancient laptop can do something my new one can't.
+1
Level 52
Aug 26, 2025
I said it is deprecated, and Mozilla doesn't support it.