Skip to Main Content

News and Events

HTML snippets

By The YouTube Team

It's now possible to put an HTML snippet on your website that automatically pulls up the latest videos with a certain tag word. An example of this, let's say you want to show all videos related to Mexico on your website. However, you want your website to be automatically updated whenever a new video is uploaded with the tag word Mexico. By using the snippet below, you can do this!

HTML Snippet for Mexico

<iframe id="videos_list" name="videos_list" src="https://www.youtube.com/videos_list?tag=mexico" scrolling="auto" width="265" height="400" frameborder="0" marginheight="0" marginwidth="0"></iframe>

By replacing the word mexico in the above snippet, you can show any tagged videos on your website and have your site automatically updated whenever a new video is uploaded with that tag!

Subscribe