Marquee
QUESTION: How do I make a Marquee tag? Srolling up or down?
 
ANSWER:  Warning! HTML purists should cover their eyes or hit the "back" button at this point.

What I'm about to tell you is generally frowned on by most web designers, in part because for many years the Marquee tag wasn't compatible with any mainstream browser except Internet Explorer and because it's particularly visually annoying when overused. Those purists who aren't reading this (are you!) would say that any use = over use. Anyway, it's now supported by Netscape 7 although it's still visually annoying.

The Marquee tag <marquee>…</marquee> takes a number of optional attributes including Direction – which is whether it scrolls to the left or the right and Behaviour – which indicates the type of scrolling. Other attributes such as Loop control how many times it plays and Bgcolor which determines its background colour. To see how it might work, open Notepad and type the basics of your web page and a single marquee tag:

<html>
<head>
</head>
<body>
<marquee>Hello IOWNIE!</marquee>
</body>
</html>

Save the file with the extension .htm and then preview it in your browser by choosing File, Open, Browse and locate the page and open it. You will see the words Hello IOWNIE! move across the screen from right to left (the default). You can move images in place of text (or in addition to it) by using a statement like this:

<marquee>Hello IOWNIE!<img src="mypic.jpg" width=50 height=50 alt="a moving image"></marquee>

This marquee uses a fixed size (small) font and a fixed face and colour. The marquee area has a solid coloured yellow background and it moves back and forth over an area that is one third of the width of the screen:

<font size="3" face="Verdana" color="red"><marquee width=30% behavior=alternate bgcolor="yellow">Hello IOWNIE</marquee></font>

By default the Behaviour of a marquee is to scroll around and around – if you use the behavior=slide attribute it will slide into position and stop rather than scroll around and around.

Needless to say this is only the tip of the iceberg of the myriad of effects you can create with the marquee.