Html marquee tag

2

Click here to load reader

Transcript of Html marquee tag

Page 1: Html marquee tag

http://www.tutorialspoint.com/html/html_marquee_tag.htm Copyright © tutorialspoint.com

HTML <MARQUEE> TAGHTML <MARQUEE> TAG

DescriptionThe HTML <marquee> tag is used for scrolling piece of text or image displayed either horizontallyacross 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 AttributesThis tag supports all the global attributes described in - HTML Attribute Reference

Specific AttributesThe HTML <marquee> tag also supports following additional attributes:

Attribute Value Description

behavior scrollslidealternate

Defines the type of scrolling.

bgcolor rgbx, x, x#xxxxxxcolorname

Deprecated-Defines the direction of scrolling thecontent.

direction updownleftright

Defines the direction of scrolling the content.

height pixels or % Defines the height of marquee.

Page 2: Html marquee tag

hspace pixels Specifies horizontal space around the marquee.

loop number Specifies how many times to loop. The default value isINFINITE, which means that the marquee loops endlessly.

scrolldelay seconds Defines how long to delay between each jump.

scrollamount number Defines how how far to jump.

width pixels or % Defines the width of marquee.

vspace pixels Specifies vertical space around the marquee.

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

Browser Support

Chrome Firefox IE Opera Safari Android

Yes Yes Yes Yes Yes ?

Loading [MathJax]/jax/output/HTML-CSS/jax.js