Recent Posts

Sunday 5 August 2018

What is marquee tag

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

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.
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>
Output:
theprogramming solution


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

Followers

Popular Posts

Categories

social media

Text Widget

Powered by Blogger.

About Me

My name is junaid khan and i am a full time blogger and author of a blog tutorial called tutorialpointsolution.

String function

In the previous post we learn about what is String .we know that string is a collection of two or more characters.In string we can store al...

Search This Blog

Technology

Adbox

Recent Post

Breaking

Recent In Internet

Comments

Facebook

Pages

Comments

Pages

Recent

Pages

Technology