2

Peeking at the sources of this Google helpdoc page, I notice there is a huge gap between the doc declaration and the html.

Other than numerology, I have no idea why this is done: There are 67 line breaks between the top doctype and the html. (And yes, it is late at night - which is why I'm looking in the crevices and such..)

Here's the copy and paste of the first bit:

<!DOCTYPE html>

































































<html>
<head>
<meta http ...
Deduplicator
  • 44,692
  • 7
  • 66
  • 118
ina
  • 19,167
  • 39
  • 122
  • 201

4 Answers4

3

Whitespace in HTML is ignored so it has no effect on SEO or page rendering (actually it is rendered as a single space in the browser). Normally whitespace is used to help format HTML so it is easier to read and manage but it can also be used in silly ways such as "hiding" the source code as linked to in the comments. It can also be because a dynamic script output blank lines where no dynamic content is rendered due to variable settings (basically someone's code is a little sloppy). I can't say these reasons apply to this page but I'm sure there's a non-nefarious reason for it.

John Conde
  • 217,595
  • 99
  • 455
  • 496
1

Nothing. On the contrary, it isn't a good practice because it sends unnecessary bytes to the user. It will slow down the loading for those who have a slow connection like smartphone.

Aurelio De Rosa
  • 21,856
  • 8
  • 48
  • 71
0

The short answer would be no. It just makes it more annoying when people try and view the source code of a website.

ayyp
  • 6,590
  • 4
  • 33
  • 47
0

Leaving lines necessary doesn't mean any thing just waste of time, thats all.

But You should leave space and use indenting it will be benefiet for you. Because when you see your document after few months you will come to know what you had written, or else you can't even see you tag corrected.

SiriusKoder
  • 341
  • 2
  • 4
  • 12