Below are list of all new HTML5 elements for media content.
<audio>
- Ites define sound content. Its (<audio>) used to add audio content to a Web Page.
Syntax - <audio src="define path" type="auto/mpeg" ></audio>
<video>
- Video eletemt is same basic syntax of audio element. Its also used to add video content to a Web Page.
Syntax - <video src="define path" type="video/mp4" ></video>
<embed>
- Its can be define container for non - HTML application
<source>
- Used for multiple media resources for media elements like <audio> and <video>
Syntax - <source controls>
<video src="define path" type="video/mp4" ></video>
</source>
<track>
- Track eletemt used as a child for <audio> and <video> element
Syntax - <video controls>
<track kind="subtitle" src="" srclang="en" label="English">
</video>
No comments:
Post a Comment