MARQUEE


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 tag..

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

The <marquee> Tag Attributes

Sr.No. Attribute and Desciption
1

width

This specifies the width of the marquee. This can be a value like 10 or 20% etc.
2

height

This specifies the height of the marquee. This can be a value like 10 or 20% etc.
3

direction

This specifies the direction in which marquee should scroll. This can be a value like up, down, left or right.
4

behavior

This specifies the type of scrolling of the marquee. This can have a value like scroll, slide and alternate..
5

scrolldelay

This specifies how long to delay between each jump. This will have a value like 10 etc..
6

scrollamount

This specifies the speed of marquee text. This can have a value like 10 etc..
7

bgcolor

This specifies background color in terms of color name or color hex value.
8

hspace

This specifies horizontal space around the marquee. This can be a value like 10 or 20% etc.
9

vspace

This specifies vertical space around the marquee. This can be a value like 10 or 20% etc.

Example-1

marquee1 hello world

Example-2

marquee2 direction left(default) direction right direction up direction down

Example-3

marquee3 behavior scroll behavior alternate behavior slide

Example-4

marquee4 hspace