xxxxxxxxxx
<!DOCTYPE html>
<html>
<head>
<title>HTML Marquee behavior attribute</title>
<style>
.main {
text-align: center;
}
.marq {
padding-top: 30px;
padding-bottom: 30px;
}
</style>
</head>
<body>
<h1 style="color:green; text-align:center;">
GeeksforGeeks
</h1>
<div class="main">
<marquee class="marq"
bgcolor="Green"
direction="left"
behavior=scroll
loop="">
Scroll
</marquee>
<marquee class="marq"
bgcolor="Green"
behavior=alternate
direction="left"
loop="">
Alternate
</marquee>
</div>
</body>
</html>