




HTML 5 <video> tag
HTML 5 <video> tag
HTML 5 <video> tag
<video controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
<source src="movie.webm" type="video/webm">
Your browser does not support the video tag.
</video>
Inside the <video> tag we need to define <source> tags
with pathname src and MIME type attributes
HTML 5 <video> tag
<video> attributes that can be set in the opening tag:
autoplay, controls, loop, muted --> doesn't need to assign a value
preload --> "auto", "none", "metadata"
poster -->image filename
height, width --> number of pixels
<iframe>, or inline frame element, actually embeds an html document inside another html document
<iframe width="400" height="300"
src="http://www.youtube.com/embed/xxxxx?html5=1">
</iframe>
Class Exercise #6
Embed three videos into an HTML document .
HTML 5 <audio> tag
There are 3 supported file formats for the <audio> tag:
MP3, Wav, and Ogg:
Note: HTML <audio> has limitations in manipulating
sounds & effects (panning, environmental processing,
multiple streams not possible)
HTML 5 <audio> tag
HTML 5 <audio> tag
<audio> attributes that can be set in the opening tag:
autoplay, controls, loop, muted --> doesn't need to assign a value
Class Exercise #7
Embed audio files into an HTML document
using relative URL's to the sound files
Class Exercise #8
Embed audio files into an the Animal Jokes HTML
using absolute URL's to the audio files.
(Use just 1 audio file type for this exercise)
www.findsounds.com
Providing Context to the Content
Before HTML5, devs would use <div> tags to define
groupings of content <div id="nav">
Providing Context, or Meaning, to the Content

<body>
<header>
<hgroup>
<h1>Header in h1</h1>
<h2>Subheader in h2</h2>
</hgroup>
</header>
<nav>
<ul>
<li><a href="#">Menu Option 1</a></li>
<li><a href="#">Menu Option 2</a></li>
<li><a href="#">Menu Option 3</a></li>
</ul>
</nav>
Create Semantic HTML tags for our Animal Jokes HTML.
Make a hyperlink somewhere inside each joke.

Intro to HTML5 Styling
<head>
<style>
h1 { color : red; }
p { text-align : center }
</style>
</head>
Create an HTML document using Semantic Tags
for the acidrain PDF document.
Use <Style> tags and the style sheet language
to adjust font colors and adjust text-alignment.
Make a hyperlink for the safety tips.