205
CHAPTER 5 More HTML5
T
he previous chapters covered a lot of material you need to know. Much, but not all, of
the content in the previous chapters existed before the HTML5 technologies came to be.
This chapter provides a transition, moving you from old to new topics. Lesson 1, “Thinking
HTML5 semantics,” discusses many aspects of HTML5 semantics that are primarily new top-
ics. Lesson 2, “Working with tables,” explains tables, which is an older but relevant topic, and
describes added features in HTML5.
Lessons in this chapter:
■■Lesson 1: Thinking HTML5 semantics 205
■■Lesson 2: Working with tables 229
Before you begin
To complete this chapter, you must have some understanding of web development. This
chapter requires the hardware and software listed in the “System requirements” section in
the book’s Introduction.
Lesson 1: Thinking HTML5 semantics
The previous chapter covered CSS positioning; all the examples used the <div> element.
The <div> element has been the preferred element to use for positioning content when
creating a page layout.
Many developers have also used the <table> element, but that element is much more
difficult to use, especially to maintain a website. Lesson 2 explains the <table> element but
doesn’t use a <table> element for page layout.
This lesson provides a different approach to creating a page layout; it covers semantic
elements and explains why you should use them.