Tell me How to add video and audio in HTML5
Submitted by: AdministratorThe canvas element is used to draw graphics images on a web page by using javascript like below
Like below we can add video in html5
<video width=“320″ height=“240″ controls=“controls”>
<source src=“mysong.mp4″ type=“video/mp4″ />
<source src=“mysong.ogg” type=“video/ogg” />
</video>
And audio like this
<audio controls=“controls”>
<source src=“mysong.ogg” type=“audio/ogg” />
<source src=“mysong.mp3″ type=“audio/mpeg” />
</audio>
Submitted by: Administrator
Like below we can add video in html5
<video width=“320″ height=“240″ controls=“controls”>
<source src=“mysong.mp4″ type=“video/mp4″ />
<source src=“mysong.ogg” type=“video/ogg” />
</video>
And audio like this
<audio controls=“controls”>
<source src=“mysong.ogg” type=“audio/ogg” />
<source src=“mysong.mp3″ type=“audio/mpeg” />
</audio>
Submitted by: Administrator
Read Online HTML5 Job Interview Questions And Answers
Top HTML5 Questions
☺ | Tell me What is the <!DOCTYPE>? Is it necessary to use in HTML5 |
☺ | Explain How many New Markup Elements you know in HTML5 |
☺ | What is the status of the development of the HTML 5 standard? |
☺ | Explain the difference between HTML and HTML5 |
☺ | Explain What are the New Media Elements in HTML5? is canvas element used in HTML5 |
Top World Wide Web Categories
☺ | Cascading Style Sheet CSS Interview Questions. |
☺ | HTML5 Interview Questions. |
☺ | Basic Internet Interview Questions. |
☺ | Domain Name System (DNS) Interview Questions. |
☺ | JavaScript Interview Questions. |