This is also why I prefer two spaces to four for indentations, in any language.
It's actually a religious thing. You know how that goes.
So this isn't a big deal with readability then? I mean other Web Devs who check the source out on their system / in their text editor aren't going to freak out over two spaces are they?
Many web devs can take someone else's code in have it indented the way they likeó I see Paul O'B uses Dreamweaver to do this for him, when he's working on others' code.
Well, if your personal rule is, two-spaces-per-child-level, then yeah you should, but I don't either. I think of the body and html tags as thuper-thpecial and they fall outside the rules for me.
I agree. I don't want crazy indentation all over the place to the point where horizontal scrolling occurs. I hate that. However, for consistency among the source, should we not indent the <head></head> and <body></body as well?
Everyone does their own thing. Like I said it's rather a religious thing. My God is better than your God and all that.
<head> indented 2 spaces
<meta> indented child 4 spaces
<title> indented child
<link> indented child
newline (often, not always, depends on what I had in my coffee)
<body> just not indented, even tho a child of html
<div> first container
(newlines only between siblings who are really really big)
</body> same level as html here