HTML Marquee tag is used to scroll text or images either horizontal or vertical direction. In the web page scrolling text can be used to display news in notice section, breaking news, latest offer etc.
Syntax: Marquee tag<marquee> Text Scroll with marquee tag </marquee>
Attribute | Description |
---|---|
scrollamount | Scrollamount specifies the speed of marquee text. |
behavior | Specifies the scrolling type of the marquee. Possible value: scroll, slide and alternate. Default value is scroll. |
direction | Specifies the direction in which the marquee should scroll. Possible values: left, right, up, or down, default value is left. |
loop | Specifies how many times to repeat marquee. Value can be set to 1, 0 and -1 (infinite). The default value is infinite. |
width* height* | Specifies the width and height of the marquee area. |
hspace* | Specifies horizontal space around the marquee. |
vspace* | Specifies vertical space around the marquee. |
bgcolor* | Specifies the marquee background color. |
Example 1: HTML Marquee tag
<marquee behavior="scroll" height="50" scrollamount="20"> Marquee with behavior Scroll </marquee> <marquee behavior="slide" height="50" scrollamount="20"> Marquee with behavior Slide </marquee> <marquee behavior="alternate" height="50" scrollamount="20"> Marquee with behavior alternate </marquee>
Scroll Image
Scroll company logo
Ad: