Open In App

What is use of poster attribute in the HTML video Tag?

The “poster” attribute in <video> Tags are used to specify an image that represents the video content before the video is played or while the video is loading. This attribute allows developers to display a custom poster image, such as a thumbnail or a promotional image, to provide a visual preview or context for the video content.

Syntax

<video src="video.mp4" poster="poster_image.jpg"></video>

Where,

Key Points of Video Tag

Key Point Description
Visual Preview The “poster” attribute allows developers to display a custom image as a visual preview or placeholder for the video content.
Contextual Information The poster image provides context or information about the video content, such as a scene from the video or promotional artwork.
User Experience A visually appealing and informative poster image can enhance the user experience by attracting attention and encouraging interaction with the video element.

Features

Article Tags :