KnowledgeBoat Logo
|

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