direction (HTML attribute)

Spec
Depr. Version
No N/A
Browser support (more…)
IE5.5+ FF1+ SA1.3+ OP9.2+ CH2+
Full Full Full Full Full

Syntax

direction="
{ left | right }
"

Description

The direction very simply tells the browser whether the content inside the marquee should travel to the left of the viewport or to the right.

Example

The direction for this marquee is set to "right":

<p><marquee direction="right">This this text
should scroll from left to right</marquee></p>

Value

"left" and "right" only.

Compatibility

Internet Explorer Firefox Safari Opera Chrome
5.5 6.0 7.0 8.0 1.0 1.5 2.0 3.0 3.5 1.3 2.0 3.1 4.0 9.2 9.5 10.0 2.0
Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full

This attribute is not defined by any standard but is well supported nonetheless.

User-contributed notes

There are no comments yet.

Related Products