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. |