How to use MARQUEE in HTML


<Marquee> tag defines a moving section of text.This tag is supported by Internet Explorer Only.

<MARQUEE>...</MARQUEE> only works with text.
Images between <MARQUEE>...</MARQUEE> are ignored.

<MARQUEE>...</MARQUEE> has the following attributes:

1) align="value"

CENTER: This centres the Marquee.
LEFT: Alignment is to the left.
RIGHT: Alignment is to the Right.

2) behavior="value"

SCROLL: Slide the text into the box and out again.
SLIDE: Slide the text into the box and stops when it hits the side.
ALTERNATE:Slde back and forth.

3) bgcolor="color"
-> "color" is the color of the background of the <MARQUEE/>

4) direction="value"

LEFT:Will Scroll left to right.
RIGHT:Will Scroll right to left.

5) height=n
Gives height of the marquee.

6) hspace=n
These are the pixels to the right and left of the marquee.
7) loop=n
It Indicates number of times to loop through the marquee.
loop's value "infinity" means the loop will run continuously.

8) scrolldelay=n
It is the number of milliseconds between redraws of the marquee text.
9) vspace=n

These are the pixels to the top and bottom of the marquee.


Author: Pradeep Iyer29 Oct 2008 Member Level: Gold   Points : 1

hi roshan,

explained in a very simple and understanding way.
good luck!!


Author: Sanjay21 Jul 2010 Member Level: Silver   Points : 1

Syntex of marquee

This word is scrolling left side

you can set direction up,down,left or right.

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: