HTML Marquees:
An HTML marquee is the scrolling text or image displayed either horizontally or vertically.
<marquee>
Attributes:
- Width – Specifies the width of the marquee.
This can be value like 10 or 20% etc.
- Height – Specifies the height of the marquee.
This can be value like 10 or 20% etc.
- Direction – Specifies the direction in which marquee should scroll. This can be value like up, down , left or right.
Left – right to left.
Right – left to right
Up – bottom to top
Down – top to bottom
- Behavior – Specifies the type of scrolling of the marquee.
Behavior =” scroll | Slide | alternate”
- Slide – start and stop as soon as the text touches the margins.
- Scroll – start completely and off one side.
- Alternate – text bounces as soon as it touch both side margin.
- Scroll delay – Specifies the amount in milli seconds between times the marquee is re drawn. Default value is “85”.
- Scrollamount – Specifies the speed of marquee text. Specifies the amount in pixels the marquee should scroll each time its redrawn. The default value is “6”.
- Loop – Specifies how many times to loop. The default value is infinite.
- Bgcolor – Specifies the background color.
- Hspace – specifies horizontal space around the marquee.
- Vspace – specifies vertical space around the marquee.
Eg:
<html>
<head>
<title>HTML Marquees</title>
</head>
<body>
<font face="verdana" size="5" color="red">
<marquee width="70%" height="30px" direction="left" behavior="scroll"scrolldelay="100" scrollamount="10" loop="1" bgcolor="yellow" hspace="50px"> HyAking- It's Technical Site
</marquee>
</font>
</body>
</html>