What are the downsides of stripping out every non-printable space, tab, and line break from an HTML document, so the entire code essentially resides on a single line? I thought Netscape 4 had trouble with very long HTML lines?



What are the downsides of stripping out every non-printable space, tab, and line break from an HTML ..

Answer / chaitanya

I don't advocate making your entire HTML page into one single line. Some editors can choke on long lines, older versions of the Oracle info server can choke on long lines, and if you email your pages (as we do at webref), some email programs can flag a virus in longer lines. So I advocate a max of 255 character lines to be safe, or a max of 2000 character lines to avoid problems with Oracle. Also, removing whitespace can break some JavaScript code, and make your code hard to read. You can avoid these problems by keeping unoptimized versions for any edits, and punctuating your JavaScript statements with semicolons.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Search Engine Optimization SEO Interview Questions

Name the social media channels used for marketing?

1 Answers  


What is external link?

0 Answers  


Do you know what are paid results?

0 Answers  


When is reinclusion applied in a search engine's index?

0 Answers  


What is XML Sitemap? How is it important?

0 Answers  






Where do we use keywords?

3 Answers  


What SEO tools do you regularly use?

0 Answers  


If a website has a search engine saturation of 40%, what does that mean?

0 Answers  


Do you know what are spiders, robots and crawlers and what are their functions?

0 Answers  


Which tool should be preferred between webmaster and analytics?

0 Answers  


Explain link popularity and how it helps exactly.

0 Answers  


Explain what is a business directory?

0 Answers  


Categories