![]() |
VOOZH | about |
The Marquee direction attribute in HTML is used to set the direction of scrolling. The default direction of scrolling is left. Possible values are up, down, left, and right.
Note: This attribute is deprecated in HTML5.
<marquee direction= up | down | left | right>
Attribute Value | Description |
|---|---|
up | It sets the direction to upward. |
down | It sets the direction downward. |
left | It sets the direction to the left. It has a default value. |
right | It sets the direction to the right. |
Example: In this example, we will see the implementation of the marquee direction attribute with an example.
Output:
Example 2: In this example we will see the implementation of marquee direction attribute with another example.
Output:
| Attribute | 👁 Chrome | 👁 Edge | 👁 Firefox | 👁 Safari | 👁 Opera |
|---|---|---|---|---|---|
| Marquee Direction | ✓ | ✓ | ✓ | ✓ | ✓ |
| Desktop | v1 | v12 | v1 | v1 | v15 |
| Mobile | v18 | ‐ | v4 | v1 | v14 |