html < video > tag youtube src | html5 < video > tag youtube
HTML video tag youtube src | HTML5 video tag youtube
Step 1 : Upload the video to YouTube
Step 2 : Take a note of the video id
Step 3 : Define an <iframe> element in your web page
Step 4 : Let the src attribute point to the video URL
Steps 5: Use the width and height attributes
to specify the dimension of the player
Step 6: Add any other parameters to the URL
Example :
<html>
<body>
<iframe width="420" height="315"
src="https://www.youtube.com/embed/tgbNymZ7vqY">
</iframe>
</body>
</html>
Comments
Post a Comment