HTML Attributes

HTML loop attribute

Requests media replay after reaching the end. The effect depends on media playback and user settings; provide controls for stopping repeated content. Applicable elements include: <audio>, <video>. Check each element’s value rules. Boolean syntax: presence enables the state; omit the attribute to disable it. A string value of "false" does not turn it off. Example uses illustrative URLs or local assets; provide the corresponding files or application endpoints when running it.

Formal Syntax & Structure

html syntaxhtml
loop

Parameters & Attributes

NameTypeDescription
loopbooleanRequests media replay after reaching the end. The effect depends on media playback and user settings; provide controls for stopping repeated content.

Working Example

Example Snippethtml
<audio src="ambience.mp3" controls loop></audio>
HTML Reference