Attributes of Marquee Tag in HTML with Example: Complete Guide

The marquee tag in HTML is a remnant of the early web, a tag from a simpler time when web design was more about animation and less about functionality. It's a fascinating piece of HTML history, and understanding its attributes can provide insights into the evolution of web design. Let's dive into the world of the marquee tag, its attributes, and some examples of how it was used.

Marquee tag attributes
Marquee tag attributes

Before we delve into the attributes, let's remember what the marquee tag does. It creates a scrolling or sliding text effect, like a marquee sign. While no longer supported by modern browsers due to accessibility concerns, understanding this tag can help us appreciate the journey of web design.

HTML TAG
HTML TAG

Basic Attributes of the Marquee Tag

The marquee tag comes with a handful of attributes that allow you to customize the scrolling effect. Let's explore some of the most common ones.

What are HTML Tags? List of common HTML Tags
What are HTML Tags? List of common HTML Tags

First, the behavior attribute determines how the text scrolls. It can take values like 'scroll', 'slide', 'alternate', 'atique', or 'hide'.

Behavior Attribute

Types of tags in HTML
Types of tags in HTML

Using 'scroll', the text scrolls continuously. With 'slide', the text slides in and out of the marquee area. 'Alternate' and 'atique' create more complex in and out Patterns. 'Hide' causes the text to disappear and reappear in the marquee area.

Secondly, the direction attribute determines the direction of the scroll. It can take values like 'left', 'right', 'up', or 'down'.

Direction Attribute

Quick HTML Tags Cheat Sheet
Quick HTML Tags Cheat Sheet

With 'left' and 'down', the text scrolls towards the end of the marquee, and with 'right' and 'up', it scrolls towards the beginning.

The scrollamount attribute controls how far the text moves before it pauses.

Scrollamount Attribute

the list of html tags for different types of webpages and pages, with text overlaiding them
the list of html tags for different types of webpages and pages, with text overlaiding them

A higher value speeds up the scroll, while a lower value slows it down.

The scrolldelay attribute determines how long the text pauses before it starts moving again.

Tags vs Attributes (Donโ€™t Confuse This ๐Ÿ˜ณ)
Tags vs Attributes (Donโ€™t Confuse This ๐Ÿ˜ณ)
HTML5 Tags &HTML5 Attributes
HTML5 Tags &HTML5 Attributes
About HTML tags
About HTML tags
๐Ÿ“Usefull HTML Form's Tags, Attributes, and Values๐Ÿ“‹
๐Ÿ“Usefull HTML Form's Tags, Attributes, and Values๐Ÿ“‹
the ultimate guide to creating and formating tags
the ultimate guide to creating and formating tags
HTML TAGS | PART 1
HTML TAGS | PART 1
Commonly Used HTML Tags with Examples - DataFlair
Commonly Used HTML Tags with Examples - DataFlair
Marquee in CSS - Beginner's Guide
Marquee in CSS - Beginner's Guide
HTML TAGS
HTML TAGS
๐™ƒ๐™๐™ˆ๐™‡ ๐™๐™–๐™œ๐™จ ๐™˜๐™๐™š๐™–๐™ฉ ๐™จ๐™๐™š๐™š๐™ฉ
๐™ƒ๐™๐™ˆ๐™‡ ๐™๐™–๐™œ๐™จ ๐™˜๐™๐™š๐™–๐™ฉ ๐™จ๐™๐™š๐™š๐™ฉ
887 reactions ยท 135 shares | HTML5 Tags information 2026. #coding #webdevelopmentโœจ #htmlcssjavascript #programming | Premi Coding | Facebook
887 reactions ยท 135 shares | HTML5 Tags information 2026. #coding #webdevelopmentโœจ #htmlcssjavascript #programming | Premi Coding | Facebook
HTML Tags โ€” List of all HTML Tags with Examples TutorialBrain
HTML Tags โ€” List of all HTML Tags with Examples TutorialBrain
List of HTML Tags
List of HTML Tags
the basic html tag list is displayed in this screenshote screen graber, which shows
the basic html tag list is displayed in this screenshote screen graber, which shows
marquee tag in html - เฎคเฎฎเฎฟเฎดเฎฟเฎฒเฏ (html tags) #shorts
marquee tag in html - เฎคเฎฎเฎฟเฎดเฎฟเฎฒเฏ (html tags) #shorts
HTML Heading Tag Example
HTML Heading Tag Example
HTML Attributes
HTML Attributes
a close look at tags info sheet
a close look at tags info sheet
HTML tags are arranged in the following manner
HTML tags are arranged in the following manner
HTML Full Form + 10 Essential Tags Every Beginner Must Know ๐Ÿš€
HTML Full Form + 10 Essential Tags Every Beginner Must Know ๐Ÿš€

Scrolldelay Attribute

A higher value increases the pause time, while a lower value decreases it.

Pacific Luna's Marquee Example

Pacific Luna, a web design company, once used the marquee tag to create a dramatic, sliding effect on their website. Here's an example of their code:

Welcome to Pacific Luna!

This code would create a marquee that slides the text 'Welcome to Pacific Luna!' from right to left at a speed of 5 pixels at a time.

The marquee tag is a relic of the past, but looking at it can teach us about the past and perhaps even inspire us to create unique, scrolling effects in today's web design. But always remember, accessibility first!

Related Articles

Mysql Pdf Manual Html Table Design Examples With Code Upload Images To Use In Html Sample Html Code For Table Flask Tutorialspoint Pdf How To Insert An Image Tag In The Email's Html Tables Html W3 How Will You Display Table In Html Explain With Example Basic Html Table Css How To Insert Image In Html Tag With Example