Youtube Video


Prev Tutorial Next Tutorial

Youtube Video

Youtube is a good platform to share your video with your friends and all over the world. Here you no need any server or hosting to share or upload your video on web.

Using html you can add or show your youtube video on web page.

Steps to add video on web page.

  • Upload video on youtube.
  • get video id.
  • Define an <iframe> element in your web page.
  • Specify hight and width of iframe for display video.

Example

	
<!DOCTYPE html>
<html>
<body>

<iframe width="420" height="315"
src="http://www.youtube.com/embed/6fwnjR1nJUY">
</iframe>
// here 6fwnjR1nJUY is video id
</body>
</html>

Result

Browser supported

Element
<iframe>YesYesYesYesYes

Prev Tutorial Next Tutorial

Advertisements




Download Projects