Video tag in HTML5

I'm starting to be interested in HTML 5 the new HTML lenguage.

It's pretty cool and pretty amazing. Today after some research I made an easy example of embed video.

Using a simple <video> tag we can add videos to our websites.

As you can image it only will work in HTML 5 compatible browsers like Google Chrome, Firefox or Safari.

Demo

View demo

Full code

<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Example 1 | Developer's Blog</title> </head> <body> <header><h1>Video tag in HTML 5 | Developer's Blog</h1></header> <video controls width="500"> <source src="cat.mp4" /> <source src="cat.ogg" /> </video> <br /> <em>Video Source from http://html5demos.com/</em> </body> </html

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*