Computer Applications
Write the HTML code to add Audio and Video elements in a web page.
HTML Advanced Features
6 Likes
Answer
We can add audio and video elements using the <AUDIO> and <VIDEO> tags, respectively, in the following way :
<HTML>
<HEAD>
<TITLE>Audio and Video Elements</TITLE>
</HEAD>
<BODY>
<AUDIO CONTROLS>
<SOURCE SRC = "ringtone.wav">
Your browser doesn't support AUDIO element.
</AUDIO>
<BR>
<VIDEO CONTROLS>
<SRC = "WORDS.MP4" TYPE = "VIDEO/MP4">
Your browser does not support the video tag.
</VIDEO>
</BODY>
</HTML>
Answered By
3 Likes
Related Questions
Give the HTML code to display following output:
Write an HTML code to
(i) Create a link for garden.jpg located at
D:\
.(ii) Display an inline image named pencil.jpg located at C: in the center of your web page.
An artist has to prepare a table to showcase the type of paintings he has created, their quantity and their price. Help him to make the table. Observe the table and write the code to generate it.
Write the HTML code to design the web page as shown below, considering the specifications that follow. You can write the code for given specifications.
(i) Background color of page is yellow.
(ii) Font style for the page is arial.
(iii) Image used is gov.jpeg.
(iv) Text color of the paragraph is red.
(v) E-mail id for bottom message is
abc@xyz.com
.