Dofactory.com
Dofactory.com
Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

HTML <video> title Attribute

The title attribute on a <video> tag adds a tooltip with title text to the video player.

Hovering the mouse over the video player will display the tooltip.

Example

#

A title attribute on a <video> element.
Hover over the video to see the tooltip.

<video title="Video of Bucky Bunny" width="320" height="240" controls>
  <source src="/media/movie.mp4" type="video/mp4">
  <source src="/media/movie.ogg" type="video/ogg">
</video>

Code explanation

The title attribute is applied to the <video> opening tag.

The value can be any string.

Hover the cursor over the video element and after a second a tooltip appears.


Using title

The title attributes attaches additional information to the <video> element.

Its value can be seen as tooltip when hovering over the video control.


Syntax

<video title="value">

Values

#

Value Description
value A string value. A title can span multiple lines by including newline or carriage-return characters:  &#10;  or  &#013;.

Browser support

Here is when title support started for each browser:

Chrome
4.0 Jan 2010
Firefox
3.5 Jun 2009
IE/Edge
9.0 Sep 2012
Opera
10.5 Mar 2010
Safari
4.0 Jun 2009

You may also like

 Back to <video>

Last updated on Sep 30, 2023

Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

Guides