If I put an HTML5 video player on a web page and it has an associated caption file (WebVTT) using the <track>
tag inside the <video>
tag, will it affect my search results in a positive way?
I am trying to avoid putting the transcript of the video on the page inside a hidden element (I am not an SEO expert but I have heard that hiding text with display:none
; or visibility:hidden
is not a good idea).
TL;DR: Will search engines index the contents of a video caption file?
I have heard that hiding text with display:none; or visibility:hidden is not a good idea
Not true, Google understands that the modern day internet usesdisplay:none
andvisibility: hidden
to enhance user experience.display:none
as long as you have a mechanism for showing the text to uses at some point. Text that is not displayed initially is not going to get much weight for ranking in the search results. Text that is never displayed to the user is considered search engine spam and Google can penalize the entire site for it.