Help - Search - Members - Calendar
Full Version: YouTube Video Embed on Wordpress forcing Subtitles
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
karlip
I am trying to embed some YouTube videos on my website and want to force showing the subtitles. I read about how to do it and now it works but the editor says that there is a mistake "Named entity expected. Got none." It works without mistakes on the website but maybe someone knows how to correct it.

If I place the cc_load_policy=1 right behind the URL as described in most blogs then it does not do what I want which is not showing alternative videos once the video ends or is paused.

thanks for your help!

<div style="text-align: center;">

<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/4cmhow4aPv8?rel=0&cc_load_policy=1" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

</div>
CharlesEF
Well, the iframe attributes 'allow' and 'allowfullscreen' are not valid, remove them. Also, the attribute 'frameborder' isn't valid in HTML5.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.