Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | Marquee direction attribute

  • Last Updated : 14 Jan, 2022

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, right.

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

Attribute value: 

  • up
  • down
  • left
  • right



<!DOCTYPE html>
    <title>HTML | Marquee direction attribute
        .main {
            text-align: center;
        .marq {
            padding-top: 30px;
            padding-bottom: 30px;
    <h1 style="color:green; text-align:center;">
    <div class="main">
        <marquee class="marq"
        <marquee class="marq"


Supported Browsers: The browsers supported by HTML Marquee direction attribute are listed below: 

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Apple Safari
  • Opera


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!