Wednesday, December 20, 2017

Html Marquees


Hello guys afternoon and welcome to this section of my tutorial, in this tutorial i wanna be talking about HTML Marquees.
A HTML marquee is a scrolling piece of text displayed either horizontally across or vertically down your webpage depending on the settings. This is created by using HTML <marquees> tag.

Note: The HTML <marquees> tag may not be supported by various browsers so it is not recommended to rely on this tag, instead you can use Javascript and Css to create such effects.

You can also read: Html Basic Tags



Syntax 
A simple syntax to use HTML <marquee> tag is as follows:

<marquee  attribute_name="attribute_value".....more attributes>   
     One or more lines or text message or image
</marquee>

The marquee Tag Attributes
Below is the list of important attributes which can be used with marquee tag.

Sr.NoAttribute & Description
1
width
This specifies the width of the marquee. This can be a value like 10 or 20% etc.
2
height
This specifies the height of the marquee. This can be a value like 10 or 20% etc.
3
direction
This specifies the direction in which marquee should scroll. This can be a value like up, down, left or right.
4
behavior
This specifies the type of scrolling of the marquee. This can have a value like scroll, slide and alternate.
5
scrolldelay
This specifies how long to delay between each jump. This will have a value like 10 etc.
6
scrollamount
This specifies the speed of marquee text. This can have a value like 10 etc.
7
loop
This specifies how many times to loop. The default value is INFINITE, which means that the marquee loops endlessly.
8
bgcolor
This specifies background color in terms of color name or color hex value.
9
hspace
This specifies horizontal space around the marquee. This can be a value like 10 or 20% etc.
10
vspace
This specifies vertical space around the marquee. This can be a value like 10 or 20% etc.
Example 1

<!DOCTYPE html>
<html>

     <head>
            <title> HTML marquee Tag</title>  
     </head>

     <body>
            <marquee>This a basic example of a marquee</marquee>     
     </body>
</html>             



Example 2

<!DOCTYPE html>
<html>

     <head>
            <title> HTML marquee Tag</title>  
     </head>

     <body>
            <marquee width="100%">This example will take 100% width</marquee>     
     </body>
</html> 

You can also read: Html Basic Tags2

Example 3

<!DOCTYPE html>
<html>

     <head>
            <title> HTML marquee Tag</title>  
     </head>

     <body>
            <marquee direction="left">This text will scroll from right to left</marquee>   
     </body>
</html>       

Alright guys that's it for this tutorial, feel free to drop your questions in the comment box below and don't forget to subscribe with us, see you in my next tutorial, bye for now.
Share:

0 comments:

Post a Comment