HTML Attributes
HTML muted attribute
Sets the default muted state of a media element. The current muted state can change via user controls or JavaScript. Muted autoplay may still be restricted. 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
mutedParameters & Attributes
| Name | Type | Description |
|---|---|---|
| muted | boolean | Sets the default muted state of a media element. The current muted state can change via user controls or JavaScript. Muted autoplay may still be restricted. |
Working Example
Example Snippethtml
<video src="preview.mp4" muted controls></video>