Embed Audio and Video into your web page.

HTML CodeTry it

<!-- Embed Audio and Video into your web page. -->

<body>
   <div class="video">
      <iframe frameborder="0" src="https://www.youtube.com/embed/9SuxKAj8cGI" allowfullscreen></iframe>
   </div>
   <div class="audio">
      <audio controls>
         <source src="test.wav" type="audio/wav" />
      </audio>
   </div>
</body>

CSS CodeTry it

table{
   padding: 20px;
}
.video iframe{
   border: 2px solid black;
   width: 500px;
   height: 300px;
}
.audio audio{
   border: 2px solid black;
}

OutputTry it

Comments

Popular posts from this blog

PHP Code to print first 10 Fibonacci Numbers

Create a simple HTML page to demonstrate the use of different tags

Use Tables to provide layout to your web page.