HTML | Marquee scrolldelay attribute
The Marquee scrolldelay attribute in HTML is used to set the interval between each scroll movement in milliseconds. The default value of Scrolldelay is 85.
Note: Value less then 60 is not acceptable, unless truespeed is specified. This attribute is depreciated from HTML 5.
Syntax:
<marquee scrolldelay=number>
Attribute value:
- number: Define the speed of marquee.
Example:
html
<!DOCTYPE html> < html > < head > < title >HTML | Marquee scrolldelay attribute </ title > < style > .main { text-align: center; } .marq { padding-top: 30px; padding-bottom: 30px; } </ style > </ head > < body > < h1 style = "color:green; text-align:center;" > w3wiki </ h1 > < div class = "main" > < marquee class = "marq" bgcolor = "Green" direction = "left" loop = "" > scrolldealy: default(85) </ marquee > < marquee class = "marq" Scrolldelay = 100 bgcolor = "Green" direction = "left" loop = "" > scrolldelay: 100 </ marquee > </ div > </ body > </ html > |
Output:
Supported Browsers: The browsers supported by HTML Marquee scrolldelay attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Apple Safari
- Opera
Contact Us