Attributes
Attributes | Values | Description |
---|---|---|
bgcolor | Color Name | Define the background color of the marquee. |
direction | Top, Down, Left, Right | Define the direction of scrolling the content |
loop | Number | Specifies how many times content moves. The default value is infinite. |
height | px or % | Define the height of marquee |
width | px or % | Define the width of marquee |
hspace | px | Specify horizontal space around marquee |
vspace | px | Specify vertical space around marquee |
HTML Tag
The <marquee> tag in HTML creates a scrolling text or image effect within a webpage. It allows content to move horizontally or vertically across the screen, providing a simple way to add dynamic movement to elements. It includes attributes like direction to specify whether the content moves left, right, up, or down.
Note: This tag is deprecated from HTML5.