DEV Community

sutharrahul
sutharrahul

Posted on

Audio and Video Tag HTML

Whenever we visit any web site some time we see a video or audio like music and all is play there. and that video is not available on You-tube. so uses of audio and video tag when we want to add some video content or audio we use Audio video tag.
syntax of Audio and Video tag is ;
<audio src="____">audio</audio>
<video src="___">video</video>

this will show video or audio on our page.
To control video we can also add attributes like
-control
-height
-width
-loop
-Autoplay
Why we should use attributes ?
because to make out page more responsive
Image description

Top comments (0)