Skip to content
Nazmul Nikhil
Menu

<video> Elements Do Not Contain a <track> Element With [kind="captions"] (PageSpeed Insights)

PageSpeed flags self-hosted videos with no captions track. Here's how to add a WebVTT caption file, and when background videos are an exception.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
<video> Elements Do Not Contain a <track> Element With [kind="captions"] (PageSpeed Insights)
Photo: Luke Peterson on Unsplash

In short

Videos with speech need captions for deaf and hard-of-hearing visitors, and many people watch muted. For self-hosted <video>, add a <track kind="captions"> pointing to a WebVTT file. Silent background videos still get flagged; if they have no audio, consider removing the controls and muting, and document the exception. Weight 10. YouTube and Vimeo embeds manage captions in their own players.

<video controls src="/uploads/intro.mp4">
<track kind="captions" src="/uploads/intro.en.vtt" srclang="en" label="English">
</video>

This guide isn't affiliated with or endorsed by Google.

Sources and references

TAGSPageSpeed InsightsVideo elements do not contain track kind captionsVideo captions accessibilityWebvtt captions
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Page Speed & Core Web Vitals posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com