How to use video tag in HTML?

LAST READ: APR 20 2024 | Q. BY: MIKE JM

N

Nitin Singh

Video Tag in HTML

HTML5 provided the facility to use video tags to play videos on the HTML web page. Nowadays almost all modern web browsers support video tags. It offers to set custom height and width with the help of the controls attribute that offers video controls like sound, plays, stops, etc...


Video Tag Example

 <video width="500" height="250" controls>

    <source src="movie.mp4" type="video/mp4">

     <source src="movie.ogg" type="video/Ogg">

</video>

3 votes

Your Answer

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

LifeStyle & Fun

© 2024 GDATAMART.COM (All Rights Reserved)