13.02.2013 Views

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

76<br />

Summary<br />

This chapter is by no means an exhaustive list of the ways<br />

in which the body element’s class attribute is used on the<br />

New York Magazine site; I’d love to provide you with such<br />

a list, but I don’t think I could force you to sit through a<br />

Tolstoy-length chapter on the body element. Rather, I<br />

hope that the information in this chapter sparks some<br />

ideas on how this multiple class value technique can be a<br />

boon to you, and how an intelligent application of it can<br />

decrease your site’s template count, reduce markup clutter,<br />

and give you ample hooks for both JavaScript and<br />

CSS. On the New York Magazine site, we’ve used additional<br />

classes to dynamically swap out section-specific<br />

logos and automatically highlight the current navigation<br />

tab. Additional applications for this are entirely up to you.<br />

Web standards are about improved control over your<br />

design, not maintaining bulky code. Embrace your body,<br />

and your sites will be easier to maintain, update, and<br />

improve. And, of course, your users will love that.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!