HomeWeb DesignHTMLMarquee tag in HTML and its attributes

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 PrepareExams.Com </b> </marquee>
</body>
</html>

OUTPUT

Welcome to PrepareExams.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: PrepareExams </title>
</head>

<body>
	<h1> PrepareExams.Com</h1>
	 <p>
	  <marquee Scrolldelay=100 bgcolor="red" direction="right" loop="">
			marquee Tag with scrolldelay atrribute (100)
		</marquee>
	</p>
</body>
</html>

Output:

Marquee Tag: PrepareExams

PrepareExams.Com

marquee Tag with scrolldelay atrribute (100)



Supported Browsers: 

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

- Advertisment -

Latest Articles