Marquee Tag in HTML : Marquee tag is used to scroll the data, images and html tag’s.
Attributes of Marquee tag :
Direction : change the marquee direction(left, right, up, down).
Example : <direction=“right”>
Scroll amount : Increase or decrease the speed of the marquee tag.(default speed id 6sec )
Example : <scrollamount=“2”>
Loop: It id specify the number of scrolls allowed by marquee tag
Example : <loop=“2”>
Behavior : change the behavior of the marquee tag.
  • Scroll : scroll the data or images
  • Alternative: scroll the data in between specified values.
  • Slide: stop the scrolling when reaching specified location.
Title : Display the content when placing the cursor on the marquee.
Bg color : bg color to marquee tag.
Example for marquee tag :
<marquee direction=“right” scrollamount=“10” behavior=“slide” title=“alternative” onmouseover=“javascript:this.stop()” bgcolor=“blue”> Sample Text </marquee>
Live Example Code :
marquee tag code
Out Put :
marquee tag output