All videos on YouTube have an "Embed" button. When a user clicks this button, a chunk of HTML code is generated that you can copy to a Web page, blog or message board, allowing readers to play the video without having to go to the YouTube website. By default, an embedded video will display its title and rating before it plays. You can remove this information by adding a "showinfo=0" parameter to the set of parameters following the video URL in the embed code.
- Skill level:
Other People Are Reading
Direct your browser to the YouTube video that you want to embed. Click "Share" and then click "Embed." Some HTML code will appear in a text box; copy this to the location in your Web page where you want to embed the video.
Modify the auto-generated code slightly so your code looks something like this:
<iframe width="560" height="349" src="http://www.youtube.com/embed/yWe6s4QXv20?showinfo=0" frameborder="0" allowfullscreen></iframe>
All of this code should be in place already, except for the "showinfo=0" parameter. Add this yourself. You will probably also need to add the "?" that separates the video URL from the trailing list of parameters. By default there will be no parameters but if parameters do appear, separate them from "showinfo" using the "&" symbol as shown here:
Post the code and examine the embedded video. The video's title and rating information should no longer appear.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for