Animated text

Tag marquee defines the text that will scroll. This works only with Internet Explorer.
Example:
This text should scroll in Internet Explorer.
HTML code:

<marquee>This text should scroll in Internet Explorer.</marquee>

behavior attribute

behavior = scroll
example: Default value of behavior attribute is scroll. This text will scroll.
<marquee behavior = scroll>Default value of behavior attribute is scroll. This text will scroll.</marquee>

behavior = slide
example: Behavior attribute is equal to slide. This text will scroll and then stop.
<marquee behavior = slide>Behavior attribute is equal to slide. This text will scroll and then stop.</marquee>

behavior = alternate
example: Behavior attribute is equal to alternate. This text will scroll in both directions.
<marquee behavior = alternate>Behavior attribute is equal to alternate. This text will scroll in both directions.</marquee>

direction attribute

direction = left
example: Default value of direction attribute is equal to left. This text will scroll to left.
<marquee direction = left>Default value of direction attribute is equal to left. This text will scroll to left.</marquee>

direction = right
example: Value of direction attribute is equal to right. This text will scroll to right.
<marquee direction = right>Value of direction attribute is equal to right. This text will scroll to right.</marquee>

loop attribute

loop = 3
example: Default value of loop attribute is infinite. This text will scroll three times (loop = 3).
<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: Background attribute is set to red. This text will have red background.
<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: height attribute is set to 30, width attribute is set to 100. This text will have different height and width.
<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: Scrollamount attribute is set to 50. This text will scroll by 50 characters.
<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: Scrolldelay attribute is set to 500. This text will be delayed.
<marquee scrolldelay = 500>Scrolldelay attribute is set to 500. This text will be delayed.</marquee>



Back



Back to main page