www.kdwebpagedesign.com
BASIC HTML ::
BASIC CSS ::
USER Tools ::
JavaScript Tricks ::
Other Information ::
Donations ::
Do you find our Tutorials helpful? Are the free Auction Templates helping your sales? Donations of any amount are appreciated to help keep this site up and running!
ONE-TIME DONATIONS:
$


MONTHLY DONATIONS:
$ for mths.
KD Web Page Design Tutorials

The Marquee Tag

The <marquee> tag is an Internet Explorer specific tag, although newer versions of Netscape and Firefox do recognize the tag, not all of the following attributes are recognized. If the browser does not recognize the tag at all, the text will be displayed as stationary text. Do not ever use this effect to display important information. Be warned, flashing, scrolling annoying movement on your Web pages may cause viewers to hit the back button. So use it sparingly.

width="x" specifies width of marquee, where "x" is expressed as pixels or % of page width.

behavior="command" The two commands are "alternate" (text will bounce back and forth) and "slide" (text will scroll across, jump back, and scroll again).

direction="x" if "right" is chosen, text will scroll from left to right, default is right to left. You can also use "up" and "down".

loop="x" is the number of times the marquee will scroll, if not specified the default is a continuous scroll.

bgcolor="x" will give the marquee a colored background.

scrollamount="x" controls the speed of the marquee. The smaller the number, the slower is will scroll.


See below for the code to make this marquee!
<marquee width="100%" behavior="alternate" bgcolor="#d4dda6" scrollamount="2">See below for the code to make this marquee!</marquee>

You can also use images with the <marquee> tag. When using images you will need to include the "width" and "height" attributes to the <img> tag. To learn more about images, please see Adding Images.


KD Web Page Design
<marquee behavior="scroll" direction="left"><img src="img/marquee_image.gif" width="200" height="138" alt="KD Web Page Design"></marquee>

ImportantIMPORTANT: If you check this page for HTML Validation, you will find that the <marquee> tag and its attributes do NOT validate. Although the tag works fine, it is not HTML 4.01 transitional.

To Top TO TOP