You are on page 1of 1

Marquee is one of the important tags introduced in HTML to support such scrollable texts and

images within a web page.

The <marquee> tag is a container tag of HTML that is implemented for creating scrollable text or
images within a web page from either left to right or vice versa, or top to bottom or vice versa.
But this tag has been deprecated in the new version of HTML, i.e., HTML 5.
Attributes:
behavior
1. scroll(unidirectional)(default) scrollamount=10 scrolldelay=10
2. alternate(bidirectional)
bgcolor
background color
height
pixels
loop
infinite(default)
any number
direction
up left right down

Example:
<!DOCTYPE html>
<html>

<head>
<title>HTML marquee Tag</title>
</head>

<body>
<marquee scrollamount="30">This is example of marquee</marquee>
<marquee direction = "up" behaviour="alternate" bgcolor="yellow"
height=100 loop=3>The direction of text will be from bottom to top.</marquee>
</body>

</html>

You might also like