Marquee Tag in HTML

NT
2

Marquee Tag attributes

Marquee tag is scrolling text displayed either verically down or horizontally depending on setting. Created by <marquee></marquee> tag.

Syntax use HTML <marquee></marquee> tag follows 

<marquee attribute_name = "attribute">One two or more lines , text message and image</marquee>

you can also use <marquee> tag attributes

  • width - you also define width such as 10px ya 20% etc
  • height - you also define Hight such as 20px ya 40% etc
  • direction - you also define a value like up, down, left or right.
  • scrolldelay - you also define delay like 10 etc.
  • behavior - you also define a value like scroll, slide and alternate.
  • loop -  you also define default value is INFINITE, which means that the marquee loops endlessly
  • scrollamount - you also define delay like 10 etc.
  • bgcolor - use any background color in your marquee
  • hspace -Define a value like 10 or 20% etc.
  • vspace -Define specifies vertical space around the marquee a value like 10 or 20% etc.

<!DOCTYPE html>

<html>

   <head>

          <title>marquee Tag in HTML</title>

   </head>

   <body>

          <marquee>Basic example of marquee tag</marquee>

   </body>

</html>

Basic example of marquee tag

Exemple.~

  1. <marquee width = "70%">This example will take only 70% width</marquee>
  2. This example will take only 70% width
  3. <marquee direction = "right">This text will scrolled from left to right</marquee>
  4. This text will scrolled from left to right
  5. <marquee direction = "up">Text will scrolled from bottom to up</marquee>
  6. Text will scrolled from bottom to up

etc.

Post a Comment

2Comments
Post a Comment