loop (HTML attribute)

Spec
Depr. Version
No N/A
Browser support (more…)
IE5.5+ FF1+ SA1.3+ OP9.2+ CH2+
Full Full Full Full Full

Syntax

loop="value (number of loops)"

Description

The loop attribute is used to set how many times the marquee text moves across the screen. Once the number of loops has been reached, the text disappears off screen (it does not just sit there in place at the end of the loop).

Example

The marquee is set to loop just twice:

<p><marquee loop="2">Scroll me across the
screen just twice please</marquee></p>

Value

An integer (1,10, 100 etc) representing the number of times to loop.

Compatibility

Internet Explorer Firefox Safari Opera Chrome
5.5 6.0 7.0 8.0 1.0 1.5 2.0 3.0 3.5 1.3 2.0 3.1 4.0 9.2 9.5 10.0 2.0
Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full Full

This attribute is not defined by any standard but is well supported nonetheless.

User-contributed notes

There are no comments yet.

Related Products