Chapter 8. The Future of HTML: HTML 5

In This Chapter

  • Previewing HTML 5

  • Using new semantic markup tags

  • Embedding fonts

  • Using the new canvas tag for custom graphics

  • Audio and video support

  • Advanced features

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.

Can't We Just Stick with XHTML?

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 ...

Get HTML, XHTML, & CSS All-in-One For Dummies®, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.