In this chapter we cover the last of the major changes/fixes from HTML4 to HTML5 — and the best part is, all of them make HTML, as a whole, just a bit easier to learn and use.

Flexibility: Hyperlinks and Blocks

HTML4 (especially the strict version) has a few seemingly arbitrary rules about what elements can reside inside what other elements. It’s hard to keep track of them all, and when you forget, it usually means errors from the validator, some headscratching, and some reorganizing of your markup. One of the most frequent headscratchers is the requirement that hyperlinks contain only “inline” ...

Get HTML5 Now: A Step-by-Step Video Tutorial for Getting Started Today 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.