What is the HTML code to make your web more accurate?

Does it make your web server process web pages faster or slower if the entire HTML code base is on a single line versus using returns?

  • Answer:

    It is a LITTLE bit faster, coz the file with source code is smaller(doesn't contain characters marking the new line).   Yes, however the effect of removing newlines, tabs and excess spaces is negligable in most cases. However in the case of very popular sites or sites with tight bandwidth constraints, it can sometimes give a slight edge. Just remember that tabs and spaces slow down the page load just as much as any other character will. Hope that helps some...   There will be no difference noticeable to the human perception, and unless you have very bad cases of lots-of-newlines then it won't mean much to the server's bandwidth either. Say that on average you have 1000 characters per line. That's about a decent sized paragraph in any essay, review, etc. And consider that a newline in the code might be made of a carraige return, a line feed (if text was edited on Windows for example) and a couple of tab characters. That's 4 characters against 1000 - insignificant. Even in the case where there is a run of indented HTML tags, unless your page is devoid of any and all significant content, it will make up for the imbalance. At any rate, if the presence or absence of newlines affects the processing of the page, it means that the server is already overloaded and you should move these pages to a different server. If tight bandwidth issues is such a constraint as to get finnicky with newlines, it is already clear that there will not be enough. If you really need to take bandwidth into consideration, down-size your images, compress them further and don't host any other media than plain pages and pics. Else: upgrade your hosting plan. So the end answer is: removing newlines should not yield any performance gain whatsoever. If it does, the server is overstretched, and the form of the HTML is the last of your worries.

community wiki at wiki.answers.com Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.