- Marquee tag
The marquee tag is a non-standard
HTML markup element type which causes text to scroll up, down, left or right. The tag was first introduced in early versions ofMicrosoft 'sInternet Explorer , and was compared toNetscape 'sblink element , as a proprietary non-standard extension to the HTML standard with usability problems. It is deprecated by theW3C and not advised by them for use in any HTML documents.Usability problems
Because text within a marquee is not always visible, it violates the basic nature of web pages, which are eminently skimmable Fact|date=August 2008. Users typically glance over a page and decide what, if anything, to read (using headlines, bold text, bullets, etc.), but marquees, like the
blink element , hide text at certain points, meaning at any given time, scanning the page may fail (or take longer).Links within marquees are notoriously difficult to click, and users only get one chance every time it scrolls past. This can easily frustrate users.
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.
*Bgcolor: Sets the background color of the marquee.
*Direction: Sets the direction of the marquee box to eitherleft
-to-right,right
-to-left,up
-to-down anddown
-to-up. Later browsers added support for a movie credit style bottom-up
and top-down
values.
*Height: This sets how tall the marquee should be.
*Width: This sets how wide the marquee should be.
*Loop: This sets how many times the marquee should 'Loop' its text.
*Scrollamount: This is how many pixels the text moves between 'frames', in pixels.
*Scrolldelay: This sets the amount of time, in milliseconds, between 'frames'.Compliance
The marquee element type was first invented for
Microsoft 'sInternet Explorer and is still supported. TheMozilla Firefox , Opera, and Safari web browsers support it for legacy page compatibility, although many other browsers do not. The tag is considered unofficial in properXHTML orHTML . An equivalent for the tag is however being designed for the future releases ofCascading Style Sheets . [ [http://www.w3.org/TR/css3-box/#marquee CSS basic box model ] ] Similar effects can also be achieved through the use ofJavaScript on a webpage.See also
*
Blink element
*HTML element
*Non-standard HTML tags Notes
Wikimedia Foundation. 2010.