Skip to main content

HTML Marquees

The <marquee> Tag Syntax
An HTML marquee is a scrolling piece of text displayed either horizontally across or vertically down your webpage depending on the settings. This is created by using HTML <marquees> tag.

Syntax :
 <marquee attribute_name="attribute_value"...more attributes>
        One or more lines or text message or image
 </marquee>

Output :
 
One or more lines or text message or image 

 The <marquee> Tag Attributes
 Following  is the list of important attributes which can be used with <marquee> tag.
  
Attribute
Description
Width
This specifies the width of the marquee.
This can be a value like 10 or 20% etc.
Height
This specifies the height of the marquee.
This can be a value like 10 or 20% etc.
Direction
This specifies the direction in which marquee should scroll.
This can be a value like up, down, left or right.
Behavior
This specifies the type of scrolling of the marquee.
This can have a value like scroll, slide and alternate.
Scrolldelay
This specifies how long to delay between each jump.
This will have a value like 10 etc.
Scrollamount
This specifies the speed of marquee text.
This can have a value like 10 etc.
Loop
This specifies how many times to loop.
The default value is INFINTE, which means that the marquee loops endlessly.
Bgcolor
This specifies background color in terms of color name or color hex value.
Hspace
This specifies horizontal space around the marquee.
This can be a value like 10 or 20% etc.
Vspace
This specifies vertical space around the marquee. This can be a value like 10 or 20% etc.

Comments