HTML Home
HTML Tags Reference
Selected Reading
© 2013 TutorialsPoint.COM
|
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:
|
|
Online Practice:
To Become more comfortable - Do Online Practice
Attributes:
| Attribute | Value | Description |
| behavior | scroll slid alternate | Defines the type of scrolling. |
| bgcolor | rgb(x,x,x) #xxxxxx colorname | Deprecated - Specifies the background color. |
| direction | up down left right | Defines the direction of scrolling the content. |
| height | pixels or % | Defines the height of marquee. |
| hspace | pixels | Specifies horizontal space around the marquee. |
| loop | number | Specifies how many times to loop. The default value is INFINITE, 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. |
Standard Attributes:
| Attribute | Description |
| class | Document wide identifier |
| dir | Specifies the direction of the text |
| id | Document wide identifier |
| title | Specifies a title to associate with the element. |
| style | Helps to include inline casecadubf style sheet. |
| lang | Sets the language code. |
| xml:lang | Sets the language code. |
Event Attributes:
| Attribute | Description |
| onclick | Script runs when a mouse click |
| ondblclick | Script runs when a mouse double-click |
| onmousedown | Script runs when mouse button is pressed |
| onmouseup | Script runs when mouse button is released |
| onmouseover | Script runs when mouse pointer moves over an element |
| onmousemove | Script runs when mouse pointer moves |
| onmouseout | Script runs when mouse pointer moves out of an element |
| onkeypress | Script runs when key is pressed and released |
| onkeydown | Script runs when key is pressed |
| onkeyup | Script runs when key is released |
Advertisements
|
|
|