Join WhatsApp

Join Now

Join Telegram

Join Now

Marquee tag in HTML and its attributes

By Akash Saharan

Published on:

Marquee tag in HTML and its attributes

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:

DirectionSpecifies content’s direction like left, right, up, down.
Scroll amountSpecifies Speed
LoopHow many times, you want to move the content
BehaviorSpecifies 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

Welcome to EducateBee.Com

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:

Marquee Tag: EducateBee

EducateBee.Com

marquee Tag with scrolldelay atrribute (100)

Supported Browsers: 

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Apple Safari
  • Opera

---Advertisement---

Related Post

HTML Tables

Published On:

HTML – Images

Published On:

HTML Comment Tags

Published On:

HTML Text Formatting Elements: Full List

Published On:

HTML Styles: How to Set color, font, size, and more

Published On:

Leave a Comment