Marquee is a tag in HTML.For using Marquee tag in HTML we need to know what is Marquee tag and how to use Marquee tag in HTML.
HTML Language is used for creating web pages for the world wide web.
In HTML a block of text is surrounded with tags.
In this post we will learn What is marquee tag and How to use marquee tag in HTML.
In the previous post we learn How to add background image in HTML.and in
<marquee behavior=slide>
<marquee bgcolor=red>
<marquee direction=right>
<marquee height=200>
<marquee width=200>
<marquee hspace=22>
<marquee vspace=22>
Output:HTML Language is used for creating web pages for the world wide web.
In HTML a block of text is surrounded with tags.
In the previous post we learn How to add background image in HTML.and in
What is marquee tag:
Marquee tag is a paired tag that start with <MARQUEE> and ends with </MARQUEE>.
This tag scrolls the text enclosed in between <MARQUEE> and </MARQUEE> tag within a document.
This tag scrolls the text enclosed in between <MARQUEE> and </MARQUEE> tag within a document.
A marquee tag is used to scroll the text either in horizontally or vertically on web page depending on the setting.
syntax:
<MARQUEE ATTRIBUTE NAME="ATTRIBUTE VALUE">
TEXT WRITE HERE...OR IMAGE......
</MARQUEE>
Attributes of marquee tag are as follows:
1.Behavior:
This attribute indicate the type of scrolling Behavior=scroll scrolls text from one side of the marquee to across or opposite side.
Behavior=slide scrolls text from one side of the marquee across and stops when the text reaches the opposite side.
Behavior=alternate bounces the marquee text from one side to other.
Example:
<marquee behavior=slide>
theprogrammingsolution
</marquee>
2.BGCOLOR:
This attribute specify the background color of the marquee.
Example:
<marquee bgcolor=red>
theprogrammingsolution
</marquee>
3.Direction:
This attribute specify the direction in which the marquee text scrolls.
the possible values are LEFT and RIGHT.
Example:
<marquee direction=right>
theprogrammingsolution
</marquee>
4.Height:
This attribute is used to specify the height of the marquee in vertical dimension.
Example:
<marquee height=200>
theprogrammingsolution
</marquee>
5.width:
This attribute specifies the width of the marquee in horizontal dimension.
Example:
<marquee width=200>
theprogrammingsolution
</marquee>
6.hspace:
This attribute specify the size of the margin to the left and right side of the marquee.
Example:
<marquee hspace=22>
theprogrammingsolution
</marquee>
7.vspace:
This attribute specify the size of the margin from top and bottom side of the marquee.
Example:
<marquee vspace=22>
theprogrammingsolution
</marquee>
Below is the code for marquee tag:
<html> <head> <title>Programming solution</title> </head> <body> <marquee>theprogramming solution</marquee> </body> </html>
So in the above post we learn what is marquee tag and how to use marquee tag in html.I hope you will understand the marquee tag.
0 comments:
Post a Comment