Enhancing Pages is Greater than Simply Graphics
Tips to Removing White Area from HTML
Eliminate multiple carriage returns
Numerous websites start with 10 or additional lines of empty area just before the code starts. Whether you do this deliberately or by accident, every carriage return includes added download time for your web page. More than 2 carriage returns straight in HTML code is too much.
Close tags on the very same line you open them on
For instance, list tags enclose listing items, yet many people like to code them on separate lines from the materials. This is just a waste of room.
Keep related block products on the exact same line
For instance, paragraph tags or table cell tags ought to be on the exact same line as their materials, but placed a carriage return after each brand-new paragraph, for readability.
Indent using areas
And only make use of one space for each and every indent. You get the exact same impact, and use less whitespace. A lot better still, do not indent, but that does make it more difficult to read the code.
Inspect your dynamic pages
You can invest continuously you wish maximizing your HTML, but if the engine that generates just what the browser views includes areas, then your job is minimized. One site I worked with, the JSP engine added 10 carriage returns to the top of every Websites, although the HTML really did not have all that added white space
Don’t go crazy and get rid of all the white room.
Keep in mind that you’ll would have to maintain the web page later, and eliminating all the white area can make it really difficult to read.
Be Wary of “Optimizers”.
There are tools available that will sweep your code and eliminate added personalities including white room. If you’re going to make use of these, be sure to confirm that they are leaving your code appropriate. Some optimizers take out characteristics that are required for valid, standards-based XHTML. Others get rid of a lot white space that only the computer system can review the web pages when they’re done.
“White Room in HTML Could Decrease Your Pages”