Animated text
Tag marquee defines the text that will scroll. This works only with Internet Explorer.
Example:
HTML code:
<marquee>This text should scroll in Internet Explorer.</marquee>
behavior attribute
behavior = scroll
example:
<marquee behavior = scroll>Default value of behavior attribute is scroll. This text will scroll.</marquee>
behavior = slide
example:
<marquee behavior = slide>Behavior attribute is equal to slide. This text will scroll and then stop.</marquee>
behavior = alternate
example:
<marquee behavior = alternate>Behavior attribute is equal to alternate. This text will scroll in both directions.</marquee>
direction attribute
direction = left
example:
<marquee direction = left>Default value of direction attribute is equal to left. This text will scroll to left.</marquee>
direction = right
example:
<marquee direction = right>Value of direction attribute is equal to right. This text will scroll to right.</marquee>
loop attribute
loop = 3
example:
<marquee loop = 3>Default value of loop attribute is infinite. This text will scroll three times (loop = 3).</marquee>
bgcolor attribute
bgcolor
defines background color. Example:
<marquee bgcolor = red>Background attribute is set to red. This text will have red background.</marquee>
height and width attributes
height and width attributes, Example:
<marquee height = 30 width = 100>height attribute is set to 30, width attribute is set to 100. This text will have different height and width.</marquee>
scrollamount attribute
scrollamount
defines how many characters to scroll. Example:
<marquee scrollamount = 50>Scrollamount attribute is set to 50. This text will scroll by 50 characters.</marquee>
scrolldelay attribute
scrolldelay
defines delay of scroll. Example:
<marquee scrolldelay = 500>Scrolldelay attribute is set to 500. This text will be delayed.</marquee>
Back
Back to main page