Pr.Pg Next Pg

<MARQUEE>……….. </MARQUEE> tag tutorials

  • This is a paired tag. It requires opening and closing tags.

  • This element allows to scrolls the text message within document. You can direct the scrolling either from Left or Right side.

  • The below table shows the list of attributes and descriptions of Marquee:

 

Sr No

Attributes

Descriptions

1

BEHAVIOR

SLIDE / SCROLL / ALTERNET:

This attribute of <MARQUEE> tag element helps to indicate type of scrolling.

SLIDE: Scrolls the text from one corner to other corner and then stops when text reaches the other corner of screen.

SCROLL: Scrolls the text completely off from one corner and starts from another corner of screen.

ALTERNET: It displays complete message on the screen and then scroll the text from Left to Right and Right to Left. It bounces the marquee text from one corner to another

2

BGCOLOR

Hexadecimal code or Color name: This attribute of <MARQUEE> element allows you to specify color of font. One can give text color by specifying Color name or by giving Hexadecimal value.

3

DIRECTION

LEFT / RIGHT: This attribute of <MARQUEE> element allows you to specify direction in which text will scroll. If you specify it as LEFT, then text will scroll from Left to Right. And if you specify it as RIGHT, then text will scroll from right to left.

4

HEIGHT

No: This attribute of <MARQUEE> element allows you to specify Height of Marquee either in No of Pixel or Percentage% of screen height.

5

WIDTH

No: This attribute of <MARQUEE> element allows you to specify Width of Marquee either in No of Pixel or Percentage% of screen Width.

6

HSPACE

No: This attribute of <MARQUEE> element allows you to specify Left and Right margin in No of Pixel.

 

7

TITLE

Tool tip message: This attribute of <MARQUEE> element specifies the alternate tag. So when one place the mouse over the Marquee, browser display tool tip over it.

8

LOOP

No: This attribute of <MARQUEE> element specifies number of times marquee scroll effect should work. If you sets MARQUEE LOOP = -1 Then it will scroll for infinite times.

 

Syntax:

<body>

<marquee attribute= value> some text</marquee>

</body>

 

Example: HTML program to demonstrate marquee and its different behavior

Output:
Example: HTML program to demonstrate marquee and it’s different attributes

Output:
Pr.Pg border                                              Next Pg