Ultimate Guide to Types of Marquee in HTML with Examples

In the realm of web design, HTML marquees have long been a standby for adding dynamic text to a static webpage. They were especially popular in the 1990s and early 2000s, and while their usage has somewhat declined due to advancements in CSS and JavaScript, they still hold relevance for certain web design tasks. Understanding the types of marquee in HTML can help you decide which one best suits your project's needs.

The Greatest Infinite Marquee (HTML + CSS only) - Webflow
The Greatest Infinite Marquee (HTML + CSS only) - Webflow

HTML marquee tags allow you to display scrolling, moving, or blinking text within your webpage. They were part of Netscape's proprietary extensions to HTML and are not part of the official HTML standard. However, they are still supported by most web browsers. Let's dive into the different types of marquee in HTML.

Marquee in CSS - Beginner's Guide
Marquee in CSS - Beginner's Guide

Single Line Marquee

The most basic type of HTML marquee is the single-line marquee. It displays a single line of text that scrolls horizontally across the screen. This type of marquee is widely used to display news tickers, website headers, or promotional text.

Marquee tag attributes
Marquee tag attributes

Here's a simple example of a single-line marquee:
<marquee>This is a single-line marquee</marquee>

Behaviors and Attributes

Types of tags in HTML
Types of tags in HTML

The behavior attribute determines how the text moves across the screen. The default value is 'scroll', but you can also use 'alternate' for a to-and-fro movement. The direction attribute controls the direction of the movement - 'left' for right-to-left scrolling, 'right' for left-to-right, and 'up' or 'down' for vertical scrolling.

The speed attribute controls the speed of the movement, with higher values meaning faster scrolling. The scrollamount attribute affects the distance each text character moves per frame. The loop attribute specifies the number of times the marquee should scroll before stopping. Set to 'infinite' for continuous scrolling.

Multi-Line Marquee

Etiqueta Marquee HTML
Etiqueta Marquee HTML

Multi-line marquees allow you to display multiple lines of text within a marquee. Each line is scrolled independently, creating a unique scrolling effect. This type of marquee is useful when you want to display detailed information, such as a list of items, in a compact space.

Here's an example of a multi-line marquee:
<marquee behavior="alternate" direction="up">Line 1.<br>Line 2.<br>Line 3.</marquee>

Bullet Points and Lists

Average Cost of a Marquee Wedding
Average Cost of a Marquee Wedding

To make multi-line marquees more readable, you can use bullet points or numbered lists. You can achieve this by inserting '•' (unicode for bullet point) or '₠' (unicode for list item) into your text:
<marquee>• Item 1<br>• Item 2<br>Item 3</marquee>

Or create a numbered list:
<marquee>₠ Item 1<br>₠ Item 2<br>Item 3</marquee>

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
About HTML tags
About HTML tags
24" Light up Marquee Letters: Steel Sign, Custom Color - Etsy
24" Light up Marquee Letters: Steel Sign, Custom Color - Etsy
an image of a computer screen with the names of different types of web pages on it
an image of a computer screen with the names of different types of web pages on it
Marquee in CSS - Beginner's Guide
Marquee in CSS - Beginner's Guide
5 great reasons to have a marquee wedding
5 great reasons to have a marquee wedding
a red and black text description for a web page with an arrow pointing to it
a red and black text description for a web page with an arrow pointing to it
HTML Full Form + 10 Essential Tags Every Beginner Must Know πŸš€
HTML Full Form + 10 Essential Tags Every Beginner Must Know πŸš€
the types of gardient text on a black background with different colors and shapes
the types of gardient text on a black background with different colors and shapes
Pure CSS 3D Marquee Text Animation Effect
Pure CSS 3D Marquee Text Animation Effect
Input types in HTML
Input types in HTML
How to Advanced Marquee Effect with CSS3 Animation
How to Advanced Marquee Effect with CSS3 Animation
π™ƒπ™π™ˆπ™‡ π™π™–π™œπ™¨ π™˜π™π™šπ™–π™© π™¨π™π™šπ™šπ™©
π™ƒπ™π™ˆπ™‡ π™π™–π™œπ™¨ π™˜π™π™šπ™–π™© π™¨π™π™šπ™šπ™©
The HTML Backbone
The HTML Backbone
Partners Logo Marquee HTML CSS
Partners Logo Marquee HTML CSS
Stop Googling HTML Inputsβ€”Save This Instead!
Stop Googling HTML Inputsβ€”Save This Instead!
Input types in Html
Input types in Html
a computer screen with the text html and an image of a web page on it
a computer screen with the text html and an image of a web page on it
an image of a web page with the text'how to write a html list '
an image of a web page with the text'how to write a html list '
Welcome to Creative Market
Welcome to Creative Market

While marquees might not be as popular as they once were, they still serve a purpose in web design. They can add interactivity and visual interest to your webpage, and with the right usage, they can be a powerful tool in your design arsenal. So, the next time you need to display some dynamic text, consider the types of marquee in HTML and how they might serve your needs.

Lastly, always remember that marquees should be used sparingly and with purpose. They can be distracting if overused, so ensure they complement, not detract from, your webpage's overall design. Happy coding!

Related Articles

Javascript Quick Tutorial Pdf Explain Img Tag With Example How To Use Image Tag In Html With Example Explain Img Tag In Html With Example Image Html Email Javascript Manual Pdf Write And Explain Table Tags In Html With Suitable Example Javascript Pdf Guide How Will You Display Table In Html Explain With Example Html Table Border Code Example