Marquee Tag in HTML Tutorialspoint Complete Guide with Examples

The Marquee Tag in HTML is a remarkable tool for creating animated or sliding effects on your web content. Often used for announcements, introductions, or to highlight important information, the marquee tag provide dynamic visual engagement on your website. Let's dive into a comprehensive guide, broken down by topic, on how to effectively use the marquee tag with 'Tutorialspoint'.

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

As a precursor, note that the tag is not part of the official HTML5 specification and its support varies among browsers. However, it remains widely supported in most popular web browsers, making it a useful tool for dynamic visual effects.

Marquee tag attributes
Marquee tag attributes

The Marquee Tag Basics

The marquee tag has an ''attribute which controls the direction of the scrolling text. The 'behavior' attribute has several values with directions like 'scroll', 'slide', and 'alternate'.

table tag
table tag

Syntax: Your text here

The 'scroll' direction

the ultimate guide to creating and formating tags
the ultimate guide to creating and formating tags

The 'scroll' behaviour makes the text move horizontally across the screen from left to right. This method is ideal for displaying your latest updates, announcements, or headlines.

The 'slide' direction

Using 'slide' behaves similarly to 'scroll', but the shift of the text appears more animated and immediate, giving an impression of a smooth slide effect.

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

Additional Marquee Tag Attributes

The marquee tag doesn't just stop at behaviour. There are several additional attributes, each controlling different animations, speeds, and more. Let's delve into the key attributes:

Speed and Scrollamount

HTML Tags — List of all HTML Tags with Examples TutorialBrain
HTML Tags — List of all HTML Tags with Examples TutorialBrain

The 'speed' attribute is used to control how fast or slow the text scrolls across the marquee. 'scrollamount' does the same, but it also adds some velocity to the scrolling.

Syntax: Your text here

How to highlights information in HTML
How to highlights information in HTML
Quick HTML Tags Cheat Sheet
Quick HTML Tags Cheat Sheet
HTML TAG
HTML TAG
𝙃𝙏𝙈𝙇 𝙏𝙖𝙜𝙨 𝙘𝙝𝙚𝙖𝙩 𝙨𝙝𝙚𝙚𝙩
𝙃𝙏𝙈𝙇 𝙏𝙖𝙜𝙨 𝙘𝙝𝙚𝙖𝙩 𝙨𝙝𝙚𝙚𝙩
HTML TAGS | PART 1
HTML TAGS | PART 1
Etiqueta Marquee HTML
Etiqueta Marquee HTML
List of HTML Tags
List of HTML Tags
HTML Heading Tag Example
HTML Heading Tag Example
making html easy for you guysss
making html easy for you guysss
Space, Line Break, and Tags in HTML Content
Space, Line Break, and Tags in HTML Content
HTML Formatting — Text Formatting Tags — TutorialBrain
HTML Formatting — Text Formatting Tags — TutorialBrain
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
a close look at tags info sheet
a close look at tags info sheet
Title: HTML Semantic vs Non-Semantic Tags – Guide by RajNandani
Title: HTML Semantic vs Non-Semantic Tags – Guide by RajNandani
HTML Viewpoint Meta Tag
HTML Viewpoint Meta Tag
HTML Cheatsheets
HTML Cheatsheets
Commonly Used HTML Tags with Examples - DataFlair
Commonly Used HTML Tags with Examples - DataFlair
HTML5 Video Tag – Beginners Guide for Web Developers
HTML5 Video Tag – Beginners Guide for Web Developers
HTML TAGS | PART 2
HTML TAGS | PART 2
HTML tags are arranged in the following manner
HTML tags are arranged in the following manner

In the above syntax, 'number' represents any from 1 to 10.

Loop

The 'loop' attribute controls how many times the marquee should scroll before halting. For an infinite loop, use the 'infinite' value.

Syntax: Your text here

Styling the Marquee

To enhance your marquee's appearance, you can utilize CSS styling. Use 'style' attribute within the tag.

Example: Your text here

However, advanced styling might not work on all browsers. Always cross-check your code in different web browsers for optimized display.

In current web design practices, the Marquee Tag is rarely used due to the rise of CSS animations and JavaScript. But for simple, quick, and easy visual effects, the Marquee Tag is simply just irresistible. Start your practice with 'Tutorialspoint' today and bring that extra visual spark to your web content!