This lesson begins with a quick review of a basic HTML 4 page and then dives right in to HTML5 code. We're not going to spend time reviewing history or discussing the hows and whys here, but we'll come back to that later. First, we want to get you looking at some code.
In HTML 4, we use the <div> tag to separate HTML pages into parts. Sometimes those parts were structurally meaningful. For example, a page describing a course might include an overview, goals, prerequisites, and an outline. Each of those parts might be enclosed in a <div> tag with meaningful ids to provide meaningful structure to the page. However, <div> tags are also used to separate parts of a page for styling purposes, for example to create a column layout. In this case the areas encompassed in <div> tags might not be structurally different. Browsers cannot distinguish between structurally meaningful and meaningless divs, so they do not attribute any special significance to either kind.
This lesson explains the purpose of and difference between <section> and <article> tags, how they differ from <div> tags and how they affect a page's "outline."
In this lesson, you will learn how to use the new HTML5 audio and video elements. As different browsers currently support different types of media, you will learn how to provide the necessary options to make your media work across browsers. You will also learn how to gracefully degrade your audio and video code.
The current reality is that, while no browser (with the exception of iOS's Safari on iPhone) offers full support for all HTML5 form features, recent versions of all browsers do offer considerable implementation of new features. There are many things you can do now to take advantage of new features without causing any harm in the non-supporting browsers.
So let's dig in and learn how to use the new HTML5 form features.