Monday, January 12, 2015

Marquee Tag in HTML


1. On a background.
Syntex: <marquee>TEXT</marquee>

Result:
On a background

2. In a frame.
Syntex: <marquee style="border:RED 3px SOLID">TEXT</marquee>

Result:
In a frame

3. From left to right. We will add the attribute direction with the "right" as follows
Syntex: <marquee direction="right">TEXT</marquee>

Result: From left to right

4. Alternatively. With attribute behavior.
Syntex: <marquee behavior="alternate">TEXT</marquee>

Result:Alternatively



5. From Down to Up
Syntex: <marquee direction="up">TEXT</marquee> 

Result:TEXT

6. From Up to Down
Syntex: <marquee direction="up">TEXT</marquee> 

Result:TEXT

7. From the Up-down alternative.
Syntex: <marquee direction="up" behavior="alternate">TEXT</marquee>

Result:TEXT

8. From the top down as well from left to right at the same time. See the example for a better understanding  
Syntex: <marquee behavior="alternate" direction="up" width="80%"><marquee direction="right">TEXT</marquee></marquee>

Result:
TEXT

No comments:

Post a Comment