Saturday, 12 February 2011

HTML 5

<!DOCTYPE HTML 5>
<html>
<body>


<video width="300" height="250" controls="controls">
  <source src="movie.ogg" type="video/ogg" />
  <source src="movie.mp4" type="video/mp4" />
  <source src="movie.webm" type="video/webm" />


</video>


<video src="movie.ogg" controls="controls">
</video>


<audio src="song.ogg" controls="controls">
</audio>


<canvas id="myCanvas" width="200" height="100"></canvas>


<script type="text/javascript">
localStorage.lastname="Snyder";
document.write(localStorage.lastname);
</script>


<script type="text/javascript">
sessionStorage.lastname="Smith";
document.write(sessionStorage.lastname);
</script>


Webpage: <input type="url" list="url_list" name="link" />
<datalist id="url_list">
<option label="jsnyder" value="http://www.jsnyder.co.uk" />
<option label="protran" value="http://www.protran.org" />
<option label="BravoMusic" value="http://www.bravomusic.co.uk" />
</datalist>




</body>
</html>

1 comment:

Anonymous said...

XML/HTML/XHTML is a structured way of describing the skeleton of a webpage.