What are the new multimedia elements in HTML5?

HTML5 added elements that play media and draw graphics without any plugin like Flash.

  • <video> plays a video.
  • <audio> plays sound.
  • <source> gives more than one file format for video or audio.
  • <track> adds subtitles to a video.
  • <canvas> is a drawing area for JavaScript. SVG can also be used inline for vector graphics.
<video width="400" controls>
  <source src="movie.mp4" type="video/mp4">
</video>

<audio controls>
  <source src="song.mp3" type="audio/mpeg">
</audio>

See HTML5 Video, HTML5 Audio and HTML5 Canvas.


Learn more about the similar topics:
Tutorials
HTML Frames
HTML Iframes
HTML5 Introduction
HTML Multimedia
HTML5 Video
HTML5 Audio
HTML5 Canvas
Exercises & Assignments
No Content Found.
Interview Questions & Answers
What are the new multimedia elements in HTML5?
How do you insert a video in HTML?
What is the difference between HTML and HTML5?
What is an iframe in HTML and what is it used for?
What is the difference between canvas and SVG in HTML5?
What is the difference between localStorage, sessionStorage and cookies?