HTML Attributes

HTML preload attribute

Hints how much audio or video data should be fetched before playback. Browsers may ignore this hint; autoplay can take precedence. Applicable elements include: <audio>, <video>. Check each element’s value rules. Example uses illustrative URLs or local assets; provide the corresponding files or application endpoints when running it.

Formal Syntax & Structure

html syntaxhtml
preload="metadata"

Parameters & Attributes

NameTypeDescription
preloadenumerated: none, metadata, autoHints how much audio or video data should be fetched before playback. Browsers may ignore this hint; autoplay can take precedence.

Working Example

Example Snippethtml
<video src="lesson.mp4" controls preload="metadata"></video>
HTML Reference