How to embed mp4 video in HTML pages?

I have a mp4 video file. How to embed it video in HTML pages?

asked Jun 18, 2014 by Eric Z Ma (44,280 points)

1 Answer

 
Best answer

I use this piece of code:

In HTML:

<video class="movie" src="path/to/file.mp4" controls></video>

The CSS for "movie" class:

.movie {
    max-width:1000px;
}

Here is one example.

answered Jun 18, 2014 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...