Skip to content

Instantly share code, notes, and snippets.

@ToddG
Created July 4, 2011 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ToddG/1062824 to your computer and use it in GitHub Desktop.
Save ToddG/1062824 to your computer and use it in GitHub Desktop.
working html5 video tag in a static html file
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>Chapter 1 Examples</title>
<style type="text/css">
header,nav,footer,article {display:block;}
nav {float:left; width:20%;}
article {float:right; width:79%;}
footer {clear:both;}
</style>
</head>
<body>
<article>
<h2>Franz Kafka Video</h2>
<video src="test.ogg" poster="test-screen.png" controls></video>
</article>
</body
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment