HTML Marquees

0
373
HTML Marquees

The <marquee> tag was utilised to distinguish content that should move over a characterised segment of a website page in an even or vertical heading. The tag has been deplored and should never again be utilised. CSS or JavaScript is used to create the same effect.
The Marquee Tag is Obsolete, This tag is out of date and ought not be utilised. Program bolsters for this component is restricted and utilising it might create unexpected outcomes.

The use of <MARQUEE> tag is easy. You can put any kind of markup between <MARQUEE> and </MARQUEE> to use this tag.

Width and Height Attributes in <Marquee>:

WIDTH and HEIGHT set the measurements of the marquee.

<MARQUEE WIDTH=100 HEIGHT=25>
Welcome To W3Schools
</MARQUEE>

 

Direction Attribute in <Marquee>:

<MARQUEE DIRECTION=LEFT>Welcome</MARQUEE>
<MARQUEE DIRECTION=RIGHT>Welcome</MARQUEE>

Behavior Attribute in <Marquee>:

Example 1: <MARQUEE BEHAVIOR=SCROLL>Welcome</MARQUEE>
Example 2: <MARQUEE BEHAVIOR=SLIDE>Welcome</MARQUEE>
Example 3: <MARQUEE BEHAVIOR=ALTERNATE>Welcome</MARQUEE>

 

Scrollamount Attribute in <Marquee>:

<MARQUEE>Welcome</MARQUEE>
<MARQUEE SCROLLAMOUNT=30>Welcome</MARQUEE>
<MARQUEE SCROLLAMOUNT=60>Welcome</MARQUEE>

BGColor Attribute in <Marquee>:

<MARQUEE BGCOLOR=RED>Welcome</MARQUEE>

HSpace and VSpace Attributes in <Marquee>:

<MARQUEE WIDTH=”18%” BGCOLOR=RED>

<p>Welcome!</p>

<p>Nice To See You!</p>

</MARQUEE>Welcome!<MARQUEE HSPACE=20 WIDTH=”18%” BGCOLOR=RED>

<p>Nice To See You!</p>

</MARQUEE>Welcome!<MARQUEE VSPACE=40 WIDTH=”18%” BGCOLOR=RED>

<p>Welcome!</p><p>Nice To See You!</p></MARQUEE>

Loop Attribute in <Marquee>:

<MARQUEE LOOP=3 BEHAVIOR=ALTERNATE>Welcome</MARQUEE>