Marquee Tag Attributes with Examples: A Complete Guide

The marquee tag is often overlooked in modern web development, thanks to the advent of JavaScript and CSS animations. However, it was a staple in the early days of web design, providing simple text animations. Let's explore its attributes and examples.

Marquee Wedding Sign Set: Retro Light Design (Digital Download, 24x18in Template Set of Four)
Marquee Wedding Sign Set: Retro Light Design (Digital Download, 24x18in Template Set of Four)

While not officially supported by HTML5, marquee tags are still rendered properly in most browsers, making them a useful fallback for simple animations in legacy projects or cross-platform compatibility concerns.

a screenshot of the types of tags in an email message box, with text below
a screenshot of the types of tags in an email message box, with text below

Attributes of the Marquee Tag

The marquee tag has several attributes, including behavior, direction, scrollamount, and more. Let's dive into these and look at some examples.

Black Marquee Letters
Black Marquee Letters

Behavior and Direction

The 'behavior' attribute determines whether the text is scrolled from left to right or right to left. It can have values like 'scroll' or 'alternate'. 'Direction' is often redundant, as 'behavior=alternate' inherently goes in both directions.

two people are standing in front of a large white object with the words let's stack your marquees
two people are standing in front of a large white object with the words let's stack your marquees

Example: `This text will alternate direction.`

Scrollamount

The 'scrollamount' attribute defines the speed of the scroll. A higher value makes the text scroll faster.

DIY Marquee Letter A Template
DIY Marquee Letter A Template

Example: `This text scrolls fast.`

Loop and narrow

'Loop' sets how many times the text is scrolled, with a value of 'infinite' for continuous looping. 'Narrow' determines the width of the marquee, creating a choppy effect if the content is wider than the set width.

VIP Bottle Service Sign- Editable Marquee Letters
VIP Bottle Service Sign- Editable Marquee Letters

Example: `This text loops three times without narrowing.`

Nesting Marquee Tags

Retro Marquee Sign Clipart: 25 Vintage Light Sign PNG Graphics
Retro Marquee Sign Clipart: 25 Vintage Light Sign PNG Graphics
two tags with numbers on them sitting next to each other
two tags with numbers on them sitting next to each other
neon frame marquee letters light for event #marqueelights #marqueenumbers
neon frame marquee letters light for event #marqueelights #marqueenumbers
Wedding Name Tag Templates
Wedding Name Tag Templates
Jersey Font 3FT Marquee Light Up Letters A-Z DIY Craft Kit - L
Jersey Font 3FT Marquee Light Up Letters A-Z DIY Craft Kit - L
the inside of a wedding marquee with white drapes and chairs in it
the inside of a wedding marquee with white drapes and chairs in it
Marquee Letter Rentals in Chicago | Light Up Your Event in Style
Marquee Letter Rentals in Chicago | Light Up Your Event in Style
the letter j is shown in black and white
the letter j is shown in black and white
Marquee Letter Decor Ideas for Events
Marquee Letter Decor Ideas for Events
Vegas marquee letter rental
Vegas marquee letter rental
several place cards are placed on top of each other in order to display the names
several place cards are placed on top of each other in order to display the names
Marquee with drop down lights
Marquee with drop down lights
5ft Marquee Letters Metal Stand for Large Marquee Letters, Large Light up Letters 3ft 4ft 5ft (set of 2) - Etsy
5ft Marquee Letters Metal Stand for Large Marquee Letters, Large Light up Letters 3ft 4ft 5ft (set of 2) - Etsy
Customizable Marquee Wedding Sign, Just Married, Bottle Service (Digital Download)
Customizable Marquee Wedding Sign, Just Married, Bottle Service (Digital Download)
Digital Marquee Letters & Numbers Canva Template, Editable Marquees for Balloon Menu Mockups, Event Decor Mockup, Balloon Artist Business
Digital Marquee Letters & Numbers Canva Template, Editable Marquees for Balloon Menu Mockups, Event Decor Mockup, Balloon Artist Business
lighted letters spelling the word grad in front of a window
lighted letters spelling the word grad in front of a window
marquee stacking acrylic box
marquee stacking acrylic box
a large letter made out of cups on top of a table
a large letter made out of cups on top of a table
Light up Numbers, Number Marquee, Table top decor, Graduation year, lighted sign, custom party lights, 2026 Grad, Class of 2026, Grad party
Light up Numbers, Number Marquee, Table top decor, Graduation year, lighted sign, custom party lights, 2026 Grad, Class of 2026, Grad party
Red Marquee Letters
Red Marquee Letters

A less common but interesting feature is nesting marquee tags. This can create complex, intricate animations, but it's crucial to note that performance can degrade rapidly with deep nesting.

Basic Nesting

Basic nesting, like alternating behaviors for texture.

Example: `This text alternates while also scrolling.`

Complex Nesting

Complex nesting can create intricate, compound animations, but it should be done sparingly to avoid performance issues.

Example: `This text alternates while also scrolling.`

Marquee tags, while not modern, still hold use cases for simple, widely compatible animations. However, they should be used judiciously, with focus on accessibility and modern alternatives where possible. As web developers, we should strive for consistency and performance, without compromising the user experience.