Marquee Tag
Marquee Tag
The <marquee> tag in HTML is used to create scrolling text or images within a webpage. It
can scroll horizontally or vertically, depending on the attributes used.
Attributes of <marquee>:
1. direction
Specifies the direction of the scroll (left, right, up, or down).
Example:
2. scrollamount
Controls the speed of the scrolling text (higher values make the text move faster).
Example:
3. behavior
The behavior attribute in the <marquee> tag controls how the content behaves when it
scrolls across the screen. It defines the movement style of the marquee content, and there
are three possible values for this attribute:
● scroll (default)
The scroll behavior causes the content to continuously move across the screen in the
specified direction, starting from one edge and moving to the other. Once the content
reaches the end, it starts over.
Example:
● slide
The slide behavior makes the content scroll across the screen and then stop once it reaches
the end. It behaves like a "sliding" effect, where the content slides in and pauses after it
finishes.
Example:
Example:
4. height
Defines the height of the marquee.
Example:
5. width:
Defines the width of the marquee.
Example: