September 8, 2018

HTML5 elements for media content!



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

Integrating Google reCAPTCHA v3 in HTML Form with PHP

  What is Google reCAPTCHA v3? Google reCAPTCHA is a free service that helps protect websites from spam and abuse. reCAPTCHA v3 is the lates...