Marquee Tag in HTML
The Marquee tag is a non-standard HTML element which is used to scroll a image or text horizontally or vertically.
In simple words, you can say that it scrolls the image or text up, down, left or right automatically.
Marquee's tag contains several attributes,some of them are
- behavior:It facilitates user to set the behavior of the marquee to one of the three different types: scroll, slide and alternate.
- direction: defines direction for scrolling content. It may be left, right, up and down.
- width: defines width of marquee in pixels or %.
- height: defines height of marquee in pixels or %.
- bgcolor: defines background color.
format:
Example : "
marquee.html"
Marquee
Basic Marquee:
Scroll Marquee:
Slide Marquee:
Alternate Marquee:
Direction in marquee :
Output:
Note:The <marquee> element is a non-standard HTML element.
Next Topic :List Tags in HTML