Use iframe to show youtube video - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:video

Description

Use iframe to show youtube video

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
.centered {<!--from w w w.  j  a  v a2s  .c  o  m-->
   display:block;
   margin:auto;
}
</style> 
 </head> 
 <body> 
  <iframe width="640" height="480" class="centered" src="http://www.youtube.com/embed/J---aiyznGQ?rel=0" frameborder="0" allowfullscreen></iframe>  
 </body>
</html>

Related Tutorials