Appendix. Technical Notes

Writing CSS

CSS is the mechanism for styling HTML. Almost every example in the book begins with a block of HTML code that I then style with CSS. HTML is shown like this:

Image

HTML ignores all white space, returns, and tabs, except within text, where single spaces are respected, but more than one space is ignored. This gives you options for formatting. For example, these are all equivalents and display: An HTML paragraph element.

Image

CSS is shown like this:

CSS also ignores white space, tabs, and returns, so these are equivalents: ...

Get Stylin’ with CSS: A Designer’s Guide, Third Edition 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.