VOOZH about

URL: https://www.geeksforgeeks.org/html/html-marquee-direction-attribute/

⇱ HTML Marquee direction attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML Marquee direction attribute

Last Updated : 17 Jun, 2025

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.

Syntax:

<marquee direction= up | down | left | right> 

Attribute Value : 

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:

👁 Image

Example 2: In this example we will see the implementation of marquee direction attribute with another example.

Output:

👁 aaz

Browser Support

Attribute👁 Chrome
👁 Edge
👁 Firefox
👁 Safari
👁 Opera
Marquee Direction
Desktopv1v12v1v1v15
Mobilev18v4v1v14
Comment
Article Tags: