That said, HTML5 is not a reformulation of previous versions of the language—it includes all valid elements from both HTML4 and XHTML 1.0. Furthermore, it’s been designed with some principles in mind to ensure it works on just about every platform, is compatible with older browsers, and handles errors gracefully. A summary of the design principles that guided the creation of HTML5 can be found on the W3C’s HTML Design Principles page.
First and foremost, HTML5 includes redefinitions of existing markup elements in addition to new elements that allow web designers to be more expressive in describing the content of their pages. Why litter your page with
div elements when you can use
footer, and so on?
The term “HTML5” has also been used to refer to a number of other new technologies and APIs. Some of these include drawing with the
canvas element, offline storage, the new
audio elements, drag-and-drop functionality, Microdata, and embedded fonts. In this book, we’ll be covering a number of those technologies, and more.
- 1. Introducing HTML5 and CSS3
- 2. Markup, HTML5 Style
- 3. More HTML5 Semantics
- 4. HTML5 Forms
- 5. HTML5 Video and Audio
- 6. Introducing CSS3
- 7. CSS3 Gradients and Multiple Backgrounds
- 8. CSS3 Transforms and Transitions
- 9. Embedded Fonts and Multicolumn Layouts
- 10. Flexbox and Media Queries
- 11. Geolocation, Offline Web Apps, and Web Storage
- 12. Canvas, SVG, and Drag and Drop
- A. Modernizr
- B. WAI-ARIA
- C. Microdata