Monday, December 23, 2013

Play YouTube Video In HTML.

Here I am Going to explain how can you play YouTube Video in HTML.
Just add below  Code in your HTML page. You Can Change the Height,Width according to your Requirement. And Change Src="http://www.youtube.com/embed/ldrmaA72PJg" to your YouTube Video URL.

<iframe width="400" height="400"
src="http://www.youtube.com/embed/ldrmaA72PJg">
</iframe> 

Explanation :

Just Copy and Paste the below code in your HTML page .

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Play YouTube Video In HTML</title>
</head>
<body>
<pre class="code"
        style="background-color: white; border: 6px solid rgb(234, 234, 234); color: #444444; font-family: 'courier new'; font-size: 13px; line-height: 18px; outline: rgb(212, 212, 212) solid 1px; overflow: auto; padding: 15px; position: relative; text-align: center; width: 510px;"><img
        alt="" src="dotnetlogo.png" style="height: 64px; width: 230px" />
Play YouTube Video In HTML .

<iframe width="420" height="345"
src="http://www.youtube.com/embed/ldrmaA72PJg" id="I1" name="I1"></iframe>
WebSite : <a href="http://sarojasp.blogspot.in/">http://sarojasp.blogspot.in/</a>

</pre>
</body>
</html>


















If this Post Help You then Please Share.


No comments:

Post a Comment