Begin Web Programming with PHP & MySQL

Advertisements



Marquee

The <marquee> tag is a container tag of HTML that is implemented for creating scrollable text or images within a web page.

Eg:
<marquee behavior="scroll" direction="up" scrollamount="1">Slow Scrolling</marquee>
<marquee behavior="scroll" direction="down" scrollamount="12">Little Fast Scrolling</marquee>
<marquee behavior="scroll" direction="left" scrollamount="20">Fast Scrolling</marquee>
<marquee behavior="scroll" direction="right" scrollamount="30">Very Fast Scrolling</marquee>
Output:

Slow Scrolling Little Fast Scrolling Fast Scrolling Very Fast Scrolling

Attributes

behavior
Sets how the text is scrolled within the marquee. Possible values are scroll, slide and alternate. If no value is specified, the default value is scroll.

direction
Sets the direction of the scrolling within the marquee. Possible values are left, right, up and down. If no value is specified, the default value is left.

loop
Sets the number of times the marquee will scroll. If no value is specified, the default value is -1, which means the marquee will scroll continuously.

scrollamount
Sets the amount of scrolling at each interval in pixels.

scrolldelay
Sets the interval between each scroll movement in milliseconds. Any value smaller than 60 is ignored and the value 60 is used instead, unless truespeed is specified.