CodeToLive

HTML Multimedia

HTML supports multimedia elements like images, audio, and video to enhance web pages.

Images

Use the <img> tag to embed images in your web page.


<img src="image.jpg" alt="Description of the image" width="300" height="200">
      

Audio

Use the <audio> tag to embed audio files.


<audio controls>
  <source src="audio.mp3" type="audio/mpeg">
  Your browser does not support the audio element.
</audio>
      

Video

Use the <video> tag to embed video files.


<video controls width="400">
  <source src="video.mp4" type="video/mp4">
  Your browser does not support the video element.
</video>
      

Embedding YouTube Videos

You can embed YouTube videos using the <iframe> tag.


<iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe>
      
Next: HTML Tables