HTML <marquee> Tag

Advertisements


Description

The HTML <marquee> tag is used for scrolling piece of text or image displayed either horizontally across or vertically down your web site page depending on the settings.

Example

<!DOCTYPE html>
<html>
<head>
<title>HTML marquee Tag</title>
</head>
<body>
<marquee>This is basic example of marquee</marquee>
<marquee direction="up">The direction of text will be from bottom to top.</marquee>
</body>
</html>

This will produce following result:

This is basic example of marquee The direction of text will be from bottom to top.

Global Attributes

This tag supports all the global attributes described in - HTML Attribute Reference

Specific Attributes

The HTML <marquee> tag also supports following additional attributes:

AttributeValueDescription
behavior scroll
slide
alternate
Defines the type of scrolling.
bgcolor rgb(x,x,x)
#xxxxxx
colorname
Deprecated-Defines the direction of scrolling the content.
direction up
down
left
right
Defines the direction of scrolling the content.
height pixels or %Defines the height of marquee.
hspace pixelsSpecifies horizontal space around the marquee.
loop numberSpecifies how many times to loop. The default value is INFINITE, which means that the marquee loops endlessly.
scrolldelay secondsDefines how long to delay between each jump.
scrollamount numberDefines how how far to jump.
width pixels or %Defines the width of marquee.
vspace pixelsSpecifies vertical space around the marquee.

Event Attributes

This tag supports all the event attributes described in - HTML Events Reference

Browser Support

ChromeFirefoxIEOperaSafariAndroid
YesYesYesYesYes?

html_tags_reference.htm

Advertisements