DEV Community

Mohit Nag
Mohit Nag

Posted on

<marquee> tag in HTML

The tag is one of the most important tag in Html5.
It is a container tag of Html which is used for scrolling an Image or Text in Left, Right, Up or Down direction automatically.

Syntax : "This is a marquee tag"

The above syntax is the by-default property of the marquee tag, it simply scrolls the text("This is a marquee tag") from RIGHT-to-LEFT, and again restarts automatically from the Right-side when the end to the word crosses the left-most side, and this is the end of one complete loop.

The Marquee element contains several attributes that are used to control and adjust the appearance of the marquee.

  1. direction
  2. height
  3. width
  4. bgcolor
  5. behavior
  6. direction
  7. loop

Top comments (1)

Collapse
 
nfrankel profile image
Nicolas Fränkel

The tag is one of the most important tag in Html5

This is just plain wrong.

marquee was (over-) used 20 years ago when I started HTML. Today, it's deprecated.