In This Chapter
Previewing HTML 5
Using new semantic markup tags
Using the new canvas tag for custom graphics
Audio and video support
The Web world is always changing. A new version of HTML — HTML 5 — is on the horizon, and it has some very interesting features. In this chapter, I preview the new features in HTML 5 and show you a few examples. When HTML becomes the standard, you'll be ahead of the game.
XHTML is great. When you add CSS to it, you can do a lot with XHTML. However, it isn't perfect. The Web is evolving, and we're now commonly doing things with Web pages that were once unheard of:
Sophisticated structure: Web-based documents frequently have navigation elements, footer elements, page sections, and individual articles. Developers often use many variations of the
<div> tag to manage these elements. HTML 5 has them built in.
Multimedia: It's now common for Web pages to incorporate audio and video, yet these elements aren't built into HTML like image support. Instead, developers have to rely on external software, such as Flash.
Vector/real-time graphics: The graphics capabilities of current browsers are fine, but they don't allow real-time modification. Programmers often use third-party software, such as Flash or Silverlight, to bring in this capability.
Enhanced programming: Developers are no longer satisfied with Web pages as documents. Today's Web pages are the foundation of entire ...