143k views
0 votes
What is the correct html element for playing video files?

User Harrolee
by
6.1k points

1 Answer

2 votes
HTML stands for Hyper Text Markup Language. It is the most commonly language used for creating web pages and web applications.

The correct HTML element for playing video files is <video>.
To show a video in HTML, use the <video> element:Example:<video width="320" height="240" controls>
<source src="video 1.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
</video>
User Bentley
by
6.3k points