HTML Optimization

HTML is still the lingua franca for publishing hypertext documents on the web. With simple markup tags like <h1> and </h1> used to denote structure, HTML has become the universal language of the web. As designers and browser manufacturers morphed HTML into the web equivalent of PageMaker, however, HTML code became too verbose with presentational tags, scripts, and objects intermixed with structural markup. This chapter and the ones that follow show you how to optimize and simplify your code for maximum speed, while still maintaining the functionality and visual appeal of your site.

Ask any group of users today what makes the web so slow, and you'll hear about large video, Flash, and image files. You might hear about overused and unoptimized Java and JavaScript. What is seldom mentioned is bloated HTML. Yet HTML size is the one web page component that users cannot control. They can turn off JavaScript, images, plug-ins, and Java, but they can't turn off HTML bloatonly designers can.

Because it has looser rules, HTML offers more opportunities for optimization than its newer cousin, XHTML. In HTML, you can omit some end tags and abbreviate attributes and still have a valid document. In XHTML, every tag must be closed, every attribute fully qualified and quoted. Because HTML offers more opportunities for savings and it isn't going away anytime soon, it is the focus of this chapter. Chapter 5, "Extreme XHTML," focuses on optimizing XHTML, which can use a subset of the techniques discussed here.


Speed Up Your Site[c] Web Site Optimization
Speed Up Your Site[c] Web Site Optimization
ISBN: 596515081
Year: 2005
Pages: 135 © 2008-2017.
If you may any questions please contact us: