In this tutorial you will learn about the HTML Marquees and its application with practical example.
HTML Marquee used to set a scrolling (vertically or horizontally) text or image. Using <marquee> tag we can set text/images scroll from right to left, left to right, top to bottom, or bottom to top.
Syntax:
1 2 3 4 5 |
<marquee attribute_name="attribute_value"....more attributes> One or more lines or text message or image </marquee> |
Marquee Tag Attributes:
Attribute | Value |
---|---|
direction | This attribute specifies the direction of scroll. Example – up, down, left or right. |
behavior | This attribute specifies the type of scrolling. Example- scroll, slid and alternate. |
scrolldelay | This attribute specifies the interval between each jump. |
scrollamount | This attribute specifies the amount of jump. |
loop | This attribute specifies the number of time text/image will scroll. |
Examples:
1 2 3 |
<marquee behavior="scroll" direction="left"> Your scrolling text </marquee> |
Output:
Your scrolling text