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.


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</em> </body> </html
Code language: HTML, XML (xml)

Leave a Reply

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