Source: [WayBack] Google HTML/CSS Style Guide
- Do not add blank lines without a reason.
- For readability, add blank lines to separate large or logical code blocks.
- For readability, add two spaces of indentation. Do not use the tab key.
- Do not use unnecessary blank lines and indentation. It is not necessary to indent every element.
Source: [WayBack] HTML5 Style Guide
|
Tabs |
Spaces |
Saving |
| Raw file size |
1403 bytes |
1703 bytes |
300 bytes/18% |
| Raw file GZipped |
327 bytes |
332 bytes |
5 bytes/1.5% |
| Raw file minified |
1199 bytes |
1199 bytes |
0 bytes/0% |
| Minified & GZipped |
312 bytes |
312 bytes |
0 bytes/0% |
When minified, it doesn’t matter if tabs or spaces are used, since they are all stripped away.
Source: [WayBack] Effect of tabs vs. spaces in HTML files