What is a marquee tag ?

  • In HTML it is used to create scrolling text or image in a webpage.
  • It scrolls either from vertically top to bottom or bottom to top or horizontally left to right or right to left.
  • The marquee element comes in pairs which means that the tag has opening and closing elements.
  • The marquee is divided into two methods they are start (), stop ().
  • Start () is used to start the scrolling of the Marquee Tag.
  • Stop () is used to stop the scrolling the marquee tag.

Syntax

[pastacode lang=”markup” manual=”%3Cmarquee%3E%0A%20%20%20%3C—%20contents%20—%3E%0A%3C%2Fmarquee%3E%0A” message=”” highlight=”” provider=”manual”/]

Sample Code

[pastacode lang=”markup” manual=”%3C!DOCTYPE%20html%3E%0A%3Chtml%3E%0A%3Chead%3E%0A%20%20%20%20%3Ctitle%3EMarquee%20Tag%3C%2Ftitle%3E%0A%20%20%20%20%3Cstyle%3E%0A%20%20%20%20.main%20%7B%0A%20%20%20%20%20%20%20%20text-align%3Acenter%3B%0A%20%20%20%20%7D%0A%20%20%20%20.marq%20%7B%0A%20%20%20%20%20%20%20%20padding-top%3A30px%3B%0A%20%20%20%20%20%20%20%20padding-bottom%3A30px%3B%0A%20%20%20%20%7D%0A%20%20%20%20.geek1%20%7B%0A%20%20%20%20%20%20%20%20font-size%3A36px%3B%0A%20%20%20%20%20%20%20%20font-weight%3Abold%3B%0A%20%20%20%20%20%20%20%20color%3Ablue%3B%0A%20%20%20%20%20%20%20%20padding-bottom%3A10px%3B%0A%20%20%20%20%7D%0A%20%20%20%20%3C%2Fstyle%3E%0A%3C%2Fhead%3E%0A%20%0A%3Cbody%3E%0A%20%20%20%20%3Cdiv%20class%20%3D%20%22main%22%3E%0A%20%20%20%20%3Cmarquee%20class%3D%22marq%22%20bgcolor%20%3D%20%22Pink%22%20direction%20%3D%20%22left%22%20loop%3D%22%22%20%3E%0A%20%20%20%20%20%20%20%20%3Cdiv%20class%3D%22geek1%22%3EWelcome%20to%20Wikitechy%3C%2Fdiv%3E%0A%20%20%20%20%20%20%20%20%3Cdiv%20class%3D%22geek2%22%3EKaashiv%20Infotech%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fmarquee%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A” message=”” highlight=”” provider=”manual”/]

Output

Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like

How to Align Text in HTML ?

By using markup language, HTML is used to design webpages. It defines the link between the webpages. It defines the structure of webpages where markup language is used to define…
View Answer

How do you add buttons in HTML ?

In HTML <button> tag is used to clickable button within form on your webpage. We can put content like image or text within the <button>to</button> tag. For <button> tag we should…
View Answer