Scrolling or Moving Effect using Marquee tag in Html

Опубликовано: 01 Июнь 2026
на канале: CodeCraft
21
like

The marquee tag in HTML is used to create a scrolling effect for text or images on a web page. It allows content placed inside the tag to move horizontally (from left to right) or vertically (from top to bottom) across the screen.

Attributes:

behavior: Specifies the scrolling behavior (scroll, slide, or alternate).

direction: Specifies the scrolling direction (left, right, up, or down).

scrollamount: Specifies the speed of scrolling (in pixels per frame).