You might have come across animated text or images on many websites for example text moving continuously across the screen or image bouncing back,forth, left or right across the screen automatically. All this can be made possible using HTML Marquee Tag. There are many ways to animate text with the marquee tag in HTML.
The below table contains Marquee Attributes and their description which is supported by HTML version.
Attribute Name | Attribute Value | Attribute Description |
---|---|---|
direction | left | it moves text left |
direction | right | it moves text right |
direction | up | it moves text up |
direction | down | it moves text down |
behavior | scroll | it scrolls text |
behavior | slide | it slides text |
behavior | alternate | it bounces text back & forth |
loop | number | number of the loops |
scrolldelay | milliseconds | it sets the delay |
scrollamount | pixels | it sets the amount of movement |
Syntax
This will produce following result
This will produce following result
This will produce following result
This will produce following result
This will produce following result
This will produce following result
This will produce following result
This will produce following result
This will produce following result
This will produce following result
This will produce following result
This will produce following result