Chapter 2. Text

IMAGES, MUSIC, ANIMATIONS, and even movies are splattered all over the Web in mind-boggling abundance. Amongst the squillions of bytes that make up the Web, though, the most common form of information is plain old text.

Without text you can’t have hypertext, and without hypertext you can’t have HyperText Markup Language. The T in HTML is fundamental to a web page, so it seems like a pretty good place to get the ball rolling and start putting something tangible on those pages.

In this chapter we’ll first look at how to properly structure text, applying meaning with HTML, and then how that structured text can be manipulated to look exactly how you want it to look with CSS.

Structuring Text

Marking up text is an area where a lot ...

Get HTML Dog: The Best-Practice Guide to XHTML & CSS 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.