Check it out! <Audio tag> <Video tag>

Check it out! <Audio tag> <Video tag>

Table of contents

No heading

No headings in the article.

Hi Everyone,

let's talk about few more html tags:

The first one is 'audio' and second is 'video' :

  1. Audio tag: Audio tag is basically playing the audio files on web pages. let's see the example below
<!Doctype html>
<html>
       <head>
           <title>playing audio</title>
      </head>
      <body>
            <audio src="./music.mp3" controls></audio>
</html>

Ouput:

Screenshot from 2022-11-27 16-03-49.png

Note: controls are used to play, pause,volume up and down shown above.

2.Video tag: Video tag is used to playing videos on web pages shown below:

<!Doctype html>
<html>
       <head>
           <title>playing audio</title>
      </head>
      <body>
            <video src="./music.mp3" controls></video>
</html>

Screenshot from 2022-11-27 16-10-42.png

Note: controls are used to play, pause,volume up and down shown above.

Thanks For Reading!