Earlier quoted context omitted.
None, but for something that's attempting to generate very simple markup TITLE Is nicer than TITLE
The is also optional here.[1] TITLE Look at that, I saved you another indent. I think the recent Google Style Guide [2] has made this en vogue, but hipster points for anyone who knew about it before. [1] http://www.whatwg.org/specs/web-apps/current-work/multipage/... [2] http://google-styleguide.googlecode.com/svn/trunk/htmlcssgui...
Htmlshell - generate HTML skeletons
21–30 of 30 posts
Re: Htmlshell - generate HTML skeletons
#22The 'autorun Javascript' at the bottom would be better of in a directly run anonymous function to avoid polluting the global scope with an 'autorun' function. Also, the 'On page loaded' example is not really needed. Any Javascript included at the very last in the page will run automatically on 'page load'.
Re: Htmlshell - generate HTML skeletons
#23Re: Htmlshell - generate HTML skeletons
#24Earlier quoted context omitted.
The is also optional here.[1] TITLE Look at that, I saved you another indent. I think the recent Google Style Guide [2] has made this en vogue, but hipster points for anyone who knew about it before. [1] http://www.whatwg.org/specs/web-apps/current-work/multipage/... [2] http://google-styleguide.googlecode.com/svn/trunk/htmlcssgui...
Yup. I write all my personal web pages like this now. It's far more efficient, simply because it's less stuff to forget, easier to remember, and much quicker to type.
Re: Htmlshell - generate HTML skeletons
#25Why do so many people still use redundant HTML tags? The opening and closing body and head tags aren't needed, nether is the closing html tag. It doesn't make that much difference to the page as a whole but it adds another level of indenting to your code and makes it more complicated than it needs to be.
I don't see it as a redundant tag, not at all.
Re: Htmlshell - generate HTML skeletons
#26Re: Htmlshell - generate HTML skeletons
#27Why do so many people still use redundant HTML tags? The opening and closing body and head tags aren't needed, nether is the closing html tag. It doesn't make that much difference to the page as a whole but it adds another level of indenting to your code and makes it more complicated than it needs to be.
Also you can simply not indent html and body.
Re: Htmlshell - generate HTML skeletons
#28Re: Htmlshell - generate HTML skeletons
#29Why do so many people still use redundant HTML tags? The opening and closing body and head tags aren't needed, nether is the closing html tag. It doesn't make that much difference to the page as a whole but it adds another level of indenting to your code and makes it more complicated than it needs to be.
Personally, I just like the idea of opening and closing tags that clearly define what's going on in the markup.
Re: Htmlshell - generate HTML skeletons
#30Remember to have a backup for the jQuery googleapis call, you need to have this right after it: window.jQuery || document.write(' ')