You are here: Reference > HTML > attributes > behavior (marquee)

behavior attribute (marquee)

Browser support:
Sets the movement of text across the marquee element.
JavaScript page for this attribute: behavior. You can find other example(s) there.

Possible values:

String that sets the type of the scrolling.
One of the following values:
The text scrolls to the end and then in the opposite direction.
Default. The text scrolls to the end and starts over.
The text scrolls to the end and stops.
Default: scroll.

Example HTML code 1:

This example illustrates the use of the behavior attribute:
<marquee style="width:200px;" behavior="alternate">alternate</marquee>
<br />
<marquee style="width:200px;" behavior="scroll">scroll</marquee>
<br />
<marquee style="width:200px;" behavior="slide">slide</marquee>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content