You are here: Reference > HTML > attributes > direction (marquee)

direction attribute (marquee)

Browser support:
Specifies in which direction the marquee should scroll.
JavaScript page for this attribute: direction. You can find other example(s) there.

Possible values:

String that sets the direction of the scrolling.
One of the following values:
down
marquee scrolls down.
left
marquee scrolls left.
right
marquee scrolls right.
up
marquee scrolls up.
Default: left.

Example HTML code 1:

This example illustrates the use of the direction attribute:
<marquee id="myMarquee" style="width:200px;" direction="down">Hi There!</marquee>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content