WebTricks
Home
Home
Tutorials
Q&A Forum
Blog
Videos
Sign up / Register
HTML Marquee - Playground
Back to Lesson
HTML Code
<!DOCTYPE html> <html> <head> <title>HTML Marquee</title> <meta charset="UTF-8"> </head> <body> <h1>HTML Marquee</h1> <marquee>This is an HTML marquee.</marquee> <h3>HTML Marquee - Behavior Attribute</h3> <p>Behavior - Alternate</p> <marquee behavior="alternate">This is an HTML marquee with behaviour set as alternate.</marquee> <p>Behavior - Scroll</p> <marquee behavior="scroll">This is an HTML marquee with behaviour set as scroll.</marquee> <p>Behavior - Slide</p> <marquee behavior="slide">This is an HTML marquee with behaviour set as slide.</marquee> <h3>HTML Marquee - Width Attribute</h3> <marquee width="50%">This is an HTML marquee with width defined.</marquee> <h3>HTML Marquee - Scrollamount Attribute</h3> <marquee scrollamount="10">This is an HTML marquee with speed defined.</marquee> <h3>HTML Marquee - Direction Attribute</h3> <marquee direction="up" height="100">This is an HTML marquee with direction defined.</marquee> <h3>HTML Marquee - Onmouseover and Onmouseout Attributes</h3> <marquee onmouseover="stop()" onmouseout="start()"> This is an HTML marquee with action on mouse movement defined using <strong>onmouseover</strong> and <strong>onmouseout</strong>. </marquee> </body> </html>
CSS Code
/* Write your CSS here */
Run Code