RuskFamily.com ... the Legend Continues Practice Page
| Home | HTML Guide Start | List of HTML Elements | Next Element | Previous Element |

<MARQUEE></MARQUEE>

Define a visual scrolling area


Text contained in this element scrolls. The default direction in MS IE, Netscape and FireFox is right to left.

As an example:

      <html>
      <head>
      .
      .
      </head>
      <body>
      <marquee>Scrolling line 1</marquee>
      .
      .
      </body>
      </html>
	  

If you wanted to have two lines scroll use the <br /> element like:

      <html>
      <head>
      .
      .
      </head>
      <body>
      <marquee>Scrolling line 1<br />line 2</marquee>
      .
      .
      </body>
      </html>
	  

There are a number of attributes for the element:

behavior
alternate means the text scrolls one direction then comes back when it reaches the other edge of the window kind of like a ping-pong ball
scroll means the text goes from one side to the other then goes behind the edge and reappears where it started
slide means the text moves across the screen then stops at the other edge
bgcolor
allows you to specify the background color for the text; can be a hexadecimal representation of the color such as #6357A3 or a color name
direction
down displays the text on the left and scrolls from top to bottom
left scrolls the text from right to left
right scrolls the text from left to right
up displays the text on the left and scrolls from bottom to top
height
hspace
loop
scrollamount
scrolldelay
truespeed
vspace
width

 

| Home | HTML Guide Start | List of HTML Elements | Next Element | Previous Element |

Michael T. Rusk
Comments to author: mike@ruskfamily.com

All contents copyright © 1996-2001 Michael T. Rusk
All rights reserved.

Valid HTML 4.01!   Valid CSS!

Revised: Sunday, December 30, 2007 11:06 -0500
URL: ./htmlgd/tagmarqu.html