HTML
A HTML Tag is a non-standard HTML element used to scroll horizontally or vertically across an image or text.
In simple words, we can say that it can automatically scroll the image or text up, down, left or right.
Marquee tags were first introduced in early versions of Microsoft’s Internet Explorer. It is compared to Netscape’s Blink Element.
Example:-
HTML marquee Tag
This is HTML marquee Tag
Output:-
Attribute:-
- behavior
- direction
- width
- height
- hspace
- vspace
- scrolldelay
- scrollamount
- loop
- bgcolor
Table of Contents
HTML Scroll Marquee
Example:-
HTML marquee Tag
This is HTML marquee Tag
This is a default property. In this, we will use the bgcolor, behavior, and width attributes. This is used to scroll the text from right to left and restart the right side of the marquee when it reaches the end of the left side. The text disappears after the loop completes.
Output:-
HTML Slide Marquee
In a slide marquee ( behavior=”slide” ), all content to be scrolled will slide the entire length of the marquee but will stop at the end to display the content permanently.
Example:-
HTML marquee Tag
This is HTML marquee Tag
Output:-
HTML Alternate Marquee
It scrolls the text from right to left and back from left to right.
Example:-
HTML marquee Tag
This is HTML marquee Tag
Output:-
Direction in HTML marquee
It is used to change the direction of the scrolling text. Let’s take the example of a marquee scrolling to the right. The direction can be left, right, up, and down.
Example:-
HTML marquee Tag
This is HTML marquee Tag
direction right
direction left
direction up
direction down
Output:-
direction right
direction left
direction up
direction down