Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

HTML-Marquees

Marquee is an HTML tag that was widely used in the past to create Scrolling or moving text or images on a web page. However, as of HTML5, the marquee element has been deprecated, which means it is no longer recommended for use. Instead, you are encouraged to use CSS animations and transitions to achieve similar effects.

Here’s an example of how you can create a scrolling text using CSS animations:



  Marquee Example
    This is a scrolling text using the marquee tag.
  

In this example, a element is used to create a scrolling text. The behavior attribute is set to “scroll” to specify that the text should continuously scroll. The direction attribute is set to “left” to make the text scroll from right to left. The scrollamount attribute is set to “5” to determine the speed of the scrolling text.

Tag attribute

  1. behavior: This attribute determined the direction and style of the scrolling. Possible values were “scroll” (default), “slide,” or “alternate.”
  2. direction: This attribute specified the direction of the scrolling. It could be set to “left,” “right,” “up,” or “down.”
  3. scrollamount: This attribute determined the speed of the scrolling content. You could specify a numeric value representing pixels or a predefined value like “slow,” “normal,” or “fast.”
  4. scrolldelay: This attribute set the delay between each scroll movement. It could be specified in milliseconds.
  5. loop: This attribute determined the number of times the scrolling content would loop. A positive integer value indicated the number of loops, while “-1” represented an infinite loop.
  6. width and height: These attributes allowed you to set the dimensions (width and height) of the marquee.

Here’s an example of how the tag with attributes could be used:


  This is a scrolling text using the marquee tag.

The post HTML-Marquees appeared first on PHPGurukul.



This post first appeared on PHP Gurukul, please read the originial post: here

Share the post

HTML-Marquees

×

Subscribe to Php Gurukul

Get updates delivered right to your inbox!

Thank you for your subscription

×