marquee tag in html
Marquee tag
A simple way to add animation to a web page is the <marquee> element. Any text/image enclosed inside the marquee element will scroll across the page.
<MARQUEE> WELCOME TO MY FIRST WEB PAGE</MARQUEE>
Here we will be showing you how to scroll text using the Marquee tag.
Example:
<HTML>
<HEAD>
<TITLE>
Marquee example
</TITLE>
</HEAD>
<BODY>
<MARQUEE> WELCOME TO MY FIRST WEB PAGE</MARQUEE>
</BODY>
</HTML>
Marquee with attributes
There are some attributes that will alter a marquees appearance and behavior:
Behavior
This attributes enables how to scroll the text. The default value of scroll allows the text to scroll continuously.
Loop
This attribute is used to determine how many times the text will scroll. A numerical value will cause the action to be performed for that number of times. For example loop=10 will scroll the ext 10 times.
Direction
With this attribute you can choose the direction in which the text will move (left or right).
Scrolldelay
This attribute is used to control the movement of the text, time by delaying each separate movement for a specific period of time. The values for this attribute must be in milliseconds, a delay of 100 milliseconds would be equivalent to one tenth of a second. Some other attributes that can be used to modify the size of the marquee are like bgcolor=" " (enables to specify a background color for the marquee), height=" " (height of the marquee in pixels), width=" " (width of the marquee in pixels), hspace=" " (adds space on the sides of the marquee), vspace=" " (adds space above and below of the marquee).
For example set the background color to red.
<marquee bgcolor="red">
Example:
<HTML>
<HEAD>
<TITLE>
Marquee WITH Attributes
</TITLE>
</HEAD>
<BODY>
<MARQUEE BGCOLOR="BLUE" DIRECTION="RIGHT" SCROLLDELAY="100">
WELCOME TO MY FIRST WEB PAGE
</MARQUEE>
</BODY>
</HTML>
0 মন্তব্য(গুলি):
একটি মন্তব্য পোস্ট করুন
Comment below if you have any questions