Re:Google HTML/CSS style guide suggests omitting head and bo...
by blauditore on Tuesday May 21, 2019 @11:51AM
(#19971318)
True, for source code it might be better to leave those in. However, the fact that omitting them is standard-compliant is interesting for automated minimizers.
Re:Google HTML/CSS style guide suggests omitting head and bo...
by 52-6F-62 on Tuesday May 21, 2019 @12:02PM
(#19971438)
Yep I agree with that top comment. Explicit is far more understandable and maintainable than implicit.
Re:Google HTML/CSS style guide suggests omitting head and bo...
by jammygit on Tuesday May 21, 2019 @12:22PM
(#19971660)
I tried this for a summer, it really did lead to easier to read HTML... although now when I go back I’m not sure which tags can be omitted and which might be errors. I think it’s probably a net negative trade off but still not certain.
These days Im trying out pug instead, which is similar in a sense: more concise and readable at the expense of other people being certain of its correctness and myself remembering the syntax months later.
(Seems like a terrible idea to me - complex rules to follow for a really minimal saving...)