How to embed mp4 video in HTML pages?

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

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.

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *