O'Reilly logo

HTML Dog: The Best-Practice Guide to XHTML & CSS by Patrick Griffiths

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required