![]() |
VOOZH | about |
The Marquee behavior attribute in HTML is used to set the behavior of scrolling. The default value is scroll. When set to "slide," it creates a sliding effect for the content, smoothly moving it horizontally or vertically based on the specified direction. This attribute is part of the <marquee> tag, which is used for creating scrolling text or images
Note: This attribute is depreciated from HTML5.
<marquee behavior=slide >Attribute Value | Description |
|---|---|
alternate | It defines that text moving to the end and then starting in the opposite direction. |
scroll | It has a default value. specify the text scrolls to the end and starts over. |
slide | It specifies the text moving to the end and then stops it. |
Example: The implementation of the marquee attribute with an example.
Output:
Example: The implementation of marquee scroll attribute
Output: