Summary -
In this topic, we described about the <marquee> tag along with detailed example.
The <frameset> tag is not supported in HTML5. The <marquee> element was used to scrolling text or image across a defined section of a webpage in a horizontal or vertical direction.
The element has been deprecated and no longer be used. HTML <marquee> tag has the below attributes.
Syntax -
<marquee>.... HTML text here </marquee>
Attributes -
Attribute | Description | Values |
---|---|---|
behavior | type of scrolling. | scroll, slide, alternate |
direction | the direction of scrolling the content. | up, down, left, right |
height | the height of marquee. | pixels or % |
hspace | Specifies horizontal space | pixels |
loop | Specifies times to loop. The default value is INFINITE. | number |
scrolldelay | delay between each jump. | seconds |
scrollamount | far to jump. | number |
width | the width of marquee. | pixels or % |
vspace | vertical space around the marquee. | pixels |
Example -
<!DOCTYPE html>
<html>
<head>
<title> marquee tag example</title>
</head>
<body>
<marquee behavior="scroll" direction="left">
Scrolling text to left...</marquee><br>
<marquee behavior="scroll" direction="right">
Scrolling text to right...</marquee>
</body>
</html>