Removing The Need For Flash When Including Videos In Websites
It's well known that Flash is dying. The iSeries of devices do not support it, and many large sites like YouTube have the option to use HTML5. In this tutorial I will teach you how to ditch flash and use HTML5 to embed videos in your web pages.
This guide is for people who already know how to use HTML and CSS.
You will need; a web host, a code editor, a video file, and about ten minutes to get things going.
Steps
1. You will open your code editor and make the basic structure of a HTML5 web page. like:
2. Now in the body we will want to place our video. Do this by adding:
The opening
starts the video element.
The width and height are obviously the size of the video on screen.
tells the browser that you want people to have control over the video. This lets them pause, change the volume, and rewind the video among other things. Leave this out if you do not want this.
loads the video in a MP4 format from the server.
loads it in OGG format.
The device will decide which version to play.
is for browsers that do not support the element. E.g. Internet Explorer 6, 7 + 8.
This was just a quick introduction to the HTML5 video and I encourage you to read further.
Joshd

This guide is for people who already know how to use HTML and CSS.
What will you need
You will need; a web host, a code editor, a video file, and about ten minutes to get things going.
Steps
1. You will open your code editor and make the basic structure of a HTML5 web page. like:
Code:
<!DOCTYPE HTML>
<html>
<head>
<title>HTML5 Video rocks!</title>
<meta charset="utf-8" lang="en_GB">
</head>
<body>
</body>
</html>
2. Now in the body we will want to place our video. Do this by adding:
Code:
<video width="320" height="240" controls="controls">
<source src="movie.mp4" type="video/mp4" />
<source src="movie.ogg" type="video/ogg" />
Your browser does not support the video tag.
</video>
What does the code do?
The opening
Code:
<video
The width and height are obviously the size of the video on screen.
Code:
controls="controls">
Code:
<source src="movie.mp4" type="video/mp4" />
Code:
<source src="movie.ogg" type="video/ogg" />
The device will decide which version to play.
Code:
Your browser does not support the video tag.
This was just a quick introduction to the HTML5 video and I encourage you to read further.
Joshd

In the past I've had the video tag work in Chrome but not Firefox...