Marquee tag in HTML and its attributes
In HTML, You can display the moving content on the web page using the <marquee> tag. <marquee> tag has various attributes:
| Direction | Specifies content’s direction like left, right, up, down. |
| Scroll amount | Specifies Speed |
| Loop | How many times, you want to move the content |
| Behavior | Specifies style, (scroll, alternate, slide) |
Example Here:
<html>
<head>
<title> Marquee ag: HTML </title>
</head>
<body>
<marquee direction="left" scrollamount="5" loop="7"
behavior="slide" ><b> Welcome to EducateBee.Com </b> </marquee>
</body>
</html>
OUTPUT
Marquee scrolldelay attribute
In HTML, Marquee scrolldelay attribute is used to set the interval between each scroll movement in milliseconds.
Syntax:
<marquees scrolldelay=set the interval>
Note: The default value of Scrolldelay attribute is 85.
<!DOCTYPE html>
<html>
<head>
<title> Marquee Tag: EducateBee </title>
</head>
<body>
<h1> EducateBee.Com</h1>
<p>
<marquee Scrolldelay=100 bgcolor="red" direction="right" loop="">
marquee Tag with scrolldelay atrribute (100)
</marquee>
</p>
</body>
</html>
Output:
EducateBee.Com
Supported Browsers:
- Google Chrome
- Internet Explorer
- Firefox
- Apple Safari
- Opera


HTML Comment Tags