Webmasters like their YouTube videos. It provides them a warm fuzzy feeling once they visit a neat little embedded video player on their own websites that may take part in the latest clips. The ability to embed YouTube videos or other active content in their pages is something that a lot of people like today.

Embedding a relevant video right into a web site is a popular method to describe something more then texts; for examples : Reviews product, How to and DIY. You’d different formats to choose from, other site visitors might possibly not have the correct software installed and bandwidth was still being limited, as numerous everyone was still on low bandwidth international traffic ISP.  Most people now have broadband,, and even though you will find still many video formats, probably the most commonly used method to embed video today is by the Flash player as well as an .flv file that is provided via an video host, e.g. YouTube.

Embedding a YouTube player

How to embed youtube video by keywords (screenshot)Best practice: IFrame embeds are the recommended method for embedding a YouTube player because the IFrame will select the appropriate player based on the client’s capabilities and available YouTube file formats.

Embeds using <iframe> tags

Define an <iframe> tag in your application in which the src URL specifies the content that the player will load as well as any other player parameters you want to set.
The <iframe> tag’s height and width parameters specify the dimensions of the player.

If you are creating the <iframe> element yourself (rather than using the IFrame Player API to create it), you can append player parameters directly to the end of the URL. The URL has the following format :

The <iframe> tag below would load a 640 x 480px player that would play the YouTube video doLy-jFSFNo.
Since the URL sets the autoplay parameter to 1, the video would play automatically once the player has loaded.

Standard size of youtube video

  • 420 x 315 px
  • 480 x 360 px
  • 640 x 480 px
  • 960 x 720 px

Note: To allow room for critical player functionality, players must be at least 200 x 200 px.

Loading search results for a specified query

Set the listType player parameter to search. In addition, set the list player parameter to the query term for which you want the player to load search results.

Below is the related video and iframe code about title “How to embed youtube video by keywords”.

External Resources

How to embed youtube video by keywords