Chapter 1

Building Good Bones: Structuring the Page

IN THIS CHAPTER

Bullet Herding your text into paragraphs

Bullet Organizing your page with headings

Bullet Adding line breaks and horizontal rules

Bullet Getting familiar with HTML’s all-important semantic page tags

Bullet Annotating your code with comments

Together let us desire, conceive, and create the new structure of the future.

— WALTER GROPIUS

If you’ve ever shopped for a house — particularly if your budget skewed more to the bargain end of the asking-price scale — your Realtor most likely showed you a few places that, although clearly requiring some work, were still worth considering because they had “good bones.” In Realtor-speak, good bones means the house has (among other attributes) a solid foundation, well-built framing, and a decent roof. In other words, the house has a strong overall structure.

When it comes to building web homes, you want your pages to have good bones, as well. Creating that solid structure is the province of HTML, particularly the ...

Get HTML, CSS, & JavaScript All-in-One For Dummies 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.