An HTML marquee is a scrolling piece of text displayed either horizontally across or vertically down your webpage depending on the settings. This is created by using HTML <marquees> tag.
A simple syntax to use HTML <marquee> tag is as follows
<marquee attribute_name = "attribute_value"....more attributes> One or more lines or text message or image </marquee>
Below are few examples to demonstrate the usage of marquee tag.
<!DOCTYPE html> <html> <head> <title>HTML Marquee Tag</title> </head> <body> <marquee direction="up" scrollamount="5" onmouseover="this.stop();" onmouseout="this.start();"> <p>ASP.Net</p> <p>C#</p> <p>Vb.net</p> <p>HTML</p> <p>jQuery</p> </marquee> </body> </html>
ASP.Net
C#
Vb.net
HTML
jQuery
<!DOCTYPE html> <html> <head> <title>HTML marquee Tag</title> </head> <body> <marquee>This is basic example of marquee</marquee> </body> </html>
This will obtain the following result
<!DOCTYPE html> <html> <head> <title>HTML marquee Tag</title> </head> <body> <marquee width="50%">This example will take only 50% width</marquee> </body> </html>
<!DOCTYPE html> <html> <head> <title>HTML marquee Tag</title> </head> <body> <marquee direction="right">This text will scroll from left to right</marquee> </body> </html>
<!DOCTYPE html> <html> <head> <title>HTML marquee Tag</title> </head> <body> <marquee direction="up">This text will scroll from bottom to up</marquee> </body> </html>