Ad Code

Ticker

6/recent/ticker-posts

How to use Marquee tag in html -oklesson


If you know HTML and CSS, and you want to create a webpage. And you want your web page to be very beautiful. And also be dynamic. So you can add a very nice tag to MARQUEE in your web page, so that you can move any text. However the MARQUEE tag does not support HTML5. But still you can add MARQUEE tag to your web page.The marquee tag is a container tag. Here you will also get all the attributes related to the marquee tag and you will also be able to learn how to use the marquee tag. First of all you see this example. And then you will be able to understand how this  works.
The marquee tag works in only a few browsers such as: - chrome, firefox, internet explorer, safari etc.

<html>
<head>
<title>
marquee example
</title></head>
<body>
<marquee>Marquee used in my web page </marquee>
</body>
</html>
Marquee used in my web page Marquee Attributes:--We use Attributes to make our web page better.Using attributes, we tell the position, color, style, speed, etc. of the text in a single line.We will talk in detail about the attributes used in Marquee tags. And you will also know that these attributes work. The following are the attributes used in marquee tags.

Also Read :-- How to create Table in html

  • Direction
  • Scrollamount
  • bgcolor
  • behavior

1.Direction:--HTML is not a case sensitive language, so you can write any tag in uppercase or lowercase. Direction means to show direction. This means that with the help of this attribute, we can talk to the direction of a text from which side the text will start. In which direction will you move your text, the value used in this is the following.

  • Left
  • Right
  • Up
  • Down

<marquee direction="right">Marquee direction example :Right</marquee>
Marquee direction example :RightIn the above example you saw how we use attribute in Marquee tag.
You can check on your browser by typing left, right, up or down instead of put your value:
 
2.Scrollamount:-- We use this attribute to increase or decrease the moving speed of a text.
You can say that you can manage the movement of a text. You must have seen many website pages that some text speed is slow and some text speed is fast. So you can manage the speed of any text from here.
<marquee scrollamount="30"> Scrollamount example:speed 30 </marquee>
Scrollamount example:speed 30 3.Bgcolor:-- You must have used this attribute at some time. It colors the background of a page. Therefore, it is also called bgcolor. While using this attribute, keep in mind that you do not have to write the backgroundcolor, you only have to write its short name. See this syntax.

<marquee scrollamount="15" direction="right"  bgcolor ="skyblue" > Bgcolor example: skyblue</marquee>
Bgcolor example: skyblueLook at the example above carefully. You can change color, speed of text, direction.

Also Read:--- Introduction of  C programming

4.Behavior:-- This is the best attribute of Marquee Tag. You can use this attribute to change your text
Can tell where to go and where not. This attribute is very easy to use. And the values ​​used in this are very simple. The values ​​used in these are as follows.

  • scroll
  • slide
  • alternate

Scroll :-- This tag is automatically run by default, even if you do not use this tag, there will be no difference.
<marquee behavior="scroll"  bgcolor="skyblue" ><b>by default Scroll Example </marquee>
by default Scroll Example Slide:-- Through this tag, we fix the position of a text. This means that if a text is coming from the left, then that text will stop in the right side. Similarly, if a text is coming from the top, it will stop in the down. If you use this attribute in your document and run it in the browser, the text you write will move only once.
<marquee behavior="slide"  bgcolor="skyblue"><b>slide attribute example </marquee>
slide attribute example alternate:-- We use this tag to make alternate move of any text. This means that if any text is coming from the right side, then after moving to the left side, it will again move towards the right side. This process runs alternate.
<marquee behavior="alternate"  bgcolor="skyblue" scrollamount="30">Alternate example</marquee>
Alternate example
If you liked this information, then you must comment and tell. And if you feel that this information can be useful to anyone else, then you must share this post, so that this information can be reached to other people. If you have any question or suggestion, you can contact us through our E-mail id.
  Your-Queries:--
how to use marquee in html code
how to use marquee direction in html
how to use marquee behaviour in html
how to use marquee in html and css
how to use marquee tag attributes in html
use marquee in html
how to use marquee html
*SHARE WITH FRIENDS*

Post a Comment

0 Comments