HTML Marquee Tag

Marquee tag

  • It contains different attributes.
Tags Details
 width  It specifies width of a marquee.
 height  It specifies height of a marquee.
 direction  It specifies direction in which marquee scrolls.
 behavior  It specifies that type of scrolling the marquee.
 scrolldelay  It specifies the delay between each jump.
 loop  It specifies how many times to loop.
 scrollamount  It specifies the speed of marquee text.
 bgcolor  It specifies background color.
 hspace  It specifies horizontal space around the marquee.
 vspace  It specifies vertical space around the marquee.

Basic Example

Example 1

<!DOCTYPE html>
<html>
<body>
<marquee>This is basic example of marquee </marquee>
</body>
</html>

Output


This is basic example of marquee

Half Width

Example 2
<!DOCTYPE html>
<html>
<head>
<title>Half Width</title>
</head>
<body>
<marquee width=”50%”>Marquee Text will take half width</marquee>
</body>
</html>
Output
Half Width


Marquee Text will take half width


Left to Right

Example 3

<!DOCTYPE html>
<html>
<head>
<title>Left to Right</title>
</head>
<body>
<marquee direction=”right”>Marquee Text will scroll from left to right</marquee>
</body>
</html>

Output
Left to Right


Marquee Text will scroll from left to right

Bottom to Top

Example 4

<!DOCTYPE html>
<html>
<head>
<title>Bottom to Up</title>
</head>
<body>
<marquee direction=”up”>Marquee Text will scroll from bottom to up</marquee>
</body>
</html>

Output
Bottom to Up


Marquee Text will scroll from bottom to up

 

Leave a Reply

Your email address will not be published. Required fields are marked *