HTML Attributes

HTML poster attribute

Specifies an image displayed for a video before video frames are shown. It is not an accessible text alternative; provide an accessible media title or description where needed. Applicable elements include: <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
poster="preview.jpg"

Parameters & Attributes

NameTypeDescription
posterURLSpecifies an image displayed for a video before video frames are shown. It is not an accessible text alternative; provide an accessible media title or description where needed.

Working Example

Example Snippethtml
<video src="clip.mp4" poster="preview.jpg" controls width="320"></video>
HTML Reference