The marquee tag is an HTML element that allows you to add scrolling text or images on a page. It is a great way to draw attention to important messages, announcements, and promotions. With the marquee tag, you can create eye-catching effects without any additional code or plugins.
The marquee tag is easy to use and can be used for various purposes such as displaying quotes, highlighting news items, or displaying images in a slideshow format. This article will provide an overview of the marquee tag and how it can be used in webpages. We will also discuss some of its uses cases and best practices for using this feature effectively.
I will illustrate these animations using the examples shown below.
Practical examples using marquee tag
From right to left. This is the most simple animation given and we will not need a label to achieve the movement.
<marquee>TEXT HERE</marquee>
DEMO
From left to right.We will add the attribute direction with the “right” as follows
<marquee direction="right">TEXT HERE</marquee>
DEMO
Alternatively. With attribute behavior.
<marquee behavior="alternate">TEXT HERE</marquee>
DEMO
The bottom up.
<marquee direction="up">TEXT HERE</marquee>
DEMO
From the top down.
<marquee direction="down">TEXT HERE</marquee>
DEMO
From the top down alternative.
<marquee direction="up" behavior="alternate" style="height:100px">TEXT HERE</marquee>
DEMO
From the top-down as well from left to right at the same time. See the example for a better understanding
<marquee behavior="alternate" direction="up" width="80%"><marquee direction="right">TEXT HERE</marquee></marquee>
DEMO
Same example but in a closed space
<marquee behavior="alternate" direction="up" width="80%">
<marquee direction="right" behavior="alternate">TEXT HERE</marquee>
</marquee>
DEMO
On a background
<font color="WHITE"><marquee direction="left" style="background:RED">TEXT HERE</marquee></font>
DEMO
In a frame.
<marquee style="border:RED 3px SOLID">TEXT HERE</marquee>
DEMO
Picture. Using the above script, may be inserted photos with or without text. They will be introduced like in the following example:
<marquee>Some text here <img src="https://mytechtrips.com/wp-content/uploads/2023/01/icons8-in-love.gif" width="88" height="31" alt="Tutorials " border="0"></marquee>
DEMO
The marquee tag is a HTML element that allows users to create scrolling text and images on their webpages. It can be used to draw attention to important information or highlight special offers. The marquee tag is versatile and can be used in a variety of ways, such as creating animated banners, displaying rotating images, or even creating a simple ticker tape effect. With the right combination of code and design elements, you can create an eye-catching effect that will help your website stand out from the crowd.
The marquee tag is an HTML element that allows you to create scrolling text or images on a web page. It’s been around since the early days of HTML, and while it may not be as popular as it once was, it can still be a useful tool for certain types of content. In this article, we’ll take a look at how to use the marquee tag and some of its potential use cases.
Following my social platform
Web | www.mytechtrips.com |
Join telegram channel | Click here |
Join WhatsApp group | Click here |
Click here | |
Click here | |
Youtube Channel 1 | Click here |
Youtube Channel 2 | Click here |