Marquee tag

· The marquee tag is a non-standard HTML markup element type which causes text onscreen to scroll from right to left across the screen.

General tag

<quee> is text that will appear scrolling<quee>

Attributes

  • Align: Uses the same syntax as the img tag.
  • Behavior: Allows the user to set the behavior of the marquee to one of three different types:
    • Scroll - DEFAULT. Scrolls the text from right-to-left, and restarts at the right side of the marquee when it has reached the left side.
    • Slide - Deprecated
    • Alternate - Text 'bounces' from the left side of the box to the right side.

<marquee behavior="alternate">

Your text here

</marquee>

This text will bounce from left to right
  • Bgcolor: Sets the background color of the marquee.

<marquee bgcolor=blue>

Your text here

</marquee>

This marquee's background color will be blue.
  • Direction: Sets the direction of the marquee box to either left-to-right or right-to-left. Later browsers added support for a movie credit style bottom-up and top-down values.

<marquee direction="right">

Your text here

</marquee>

This text will scroll from left to right.
  • Height: This sets how tall the marquee should be.

<marquee height="20px">

The height of this marquee is twenty pixels.
  • Width: This sets how wide the marquee should be.

<marquee width=”100px”>

Your text here

</marquee>

This marquee is only a hundred pixels wide!
  • Loop: This sets how many times the marquee should 'Loop' its text.

<marquee loop=”2”>

Your text here

</marquee>

You will only see this text twice before it stops playing.
  • Scrollamount: This is how many pixels the text moves between 'frames', in pixels.

<marquee scrollamount=”10>

Your text here

</marquee>

This text will move ten pixels per 'frame'
  • Scrolldelay: This sets the amount of time, in milliseconds, between 'frames'.

<marquee scrolldelay=”1”>

Your text

</marquee>

This would be so fast, you couldn't see it!

<marquee>

Your text here

</marquee>

This would be so slow, you'd get no sense of animation.

Google