HTML marquee tag (running text)


<marquee>contents</marquee>

<marquee> tag is used to insert a scrolling text.

contents

Attributes

behavior

Scrolling mode of the text. Possible values is scroll, slide(single loop) and alternate(move forth and back).
Default : scroll

bgcolor

Background color, color name or RGB hexadecimal

direction

Values : left, right, up and down

loop

Scroll count, infinite if not specified

scrollamount

Scrolling speed

Other attributes : height, width

Examples

<marquee>Default</marquee>  
	
<marquee behavior="slide">slide</marquee>  
<marquee behavior="alternate">alternate</marquee>    
<marquee direction="right">to right</marquee>  
<marquee direction="up">to up</marquee>  
<marquee loop=3>3 loops</marquee>
<marquee scrollamount=25>scrollamount 25</marquee>

<marquee direction="down" width="250" height="170" behavior="alternate" style="border:solid">  
  <marquee behavior="alternate">  
	Alternate & down
  </marquee>  
</marquee>
Default slide alternate to right to up 3 loops scrollamount 25
Alternate & down



Copyright 2014-2017 by DeveloperTut.com. All Rights Reserved.
TwitterGoogle+Facebook