Tutorials Point


  HTML Home

  HTML Tags Reference
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

HTML <marquee> tag




Advertisements

Function:

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.

NOTE: The HTML <marquee> is an MSIE extension, but is now supported by NS 7 also. So please check if your browser supports this tag or not.

Difference between HTML and XHTML:

NONE

Example:

<marquee>This is basic example of marquee</marquee>

This will produce following result:

This is basic example of marquee

Online Practice:

To Become more comfortable - Do Online Practice

Attributes:

AttributeValueDescription
behaviorscroll
slid
alternate
Defines the type of scrolling.
bgcolorrgb(x,x,x)
#xxxxxx
colorname
Deprecated - Specifies the background color.
directionup
down
left
right
Defines the direction of scrolling the content.
heightpixels or %Defines the height of marquee.
hspacepixelsSpecifies horizontal space around the marquee.
loopnumberSpecifies how many times to loop. The default value is INFINITE, which means that the marquee loops endlessly.
scrolldelaysecondsDefines how long to delay between each jump.
scrollamountnumberDefines how how far to jump.
widthpixels or %Defines the width of marquee.
vspacepixelsSpecifies vertical space around the marquee.

Standard Attributes:

AttributeDescription
classDocument wide identifier
dirSpecifies the direction of the text
idDocument wide identifier
titleSpecifies a title to associate with the element.
styleHelps to include inline casecadubf style sheet.
langSets the language code.
xml:langSets the language code.

Event Attributes:

AttributeDescription
onclickScript runs when a mouse click
ondblclickScript runs when a mouse double-click
onmousedownScript runs when mouse button is pressed
onmouseupScript runs when mouse button is released
onmouseoverScript runs when mouse pointer moves over an element
onmousemoveScript runs when mouse pointer moves
onmouseoutScript runs when mouse pointer moves out of an element
onkeypressScript runs when key is pressed and released
onkeydownScript runs when key is pressed
onkeyupScript runs when key is released

Printer Friendly

Advertisements


  

Advertisements