Recent-Post

MARQUEE TAG


MARQUEE TAG

Traditionally, the <marquee> HTML tag was utilized to provide a scrolling or moving text or picture effect on a webpage. It's crucial to remember that the <marquee> tag is no longer deemed relevant in HTML5 and should not be used. To accomplish comparable effects, it is preferable to use JavaScript or CSS animations since they offer greater control and are thought to be more up to date and versatile.

Here's a basic illustration of how to utilize the <marquee> tag:

In this instance:

 <!DOCTYPE html>

<html>

<head>

 <meta charset="utf-8">

 <meta name="viewport" content="width=device-width, initial-scale=1">

 <title></title>

</head>

<body>

 <div style="border: solid 5px black;">

 <h1 >ZEE25</h1>

<h2>marquee</h2>

<marquee style="background-color:gray;color:yellow" scrollamount="5" direction="right" height="5%" width="100%" behavior="alternatescroll">@ZEE25</marquee>

</div>

</body>

</html>

The scrolling behavior is specified by behavior ("scroll" for continuous scrolling).direction indicates the way the scroll is to be made ("left" in this example).Once more, for dynamic and interactive effects on a webpage, CSS or JavaScript are recommended since they provide better control and allow style and behavior to be separated from the HTML structure.

Post a Comment

0 Comments