Live data from Hacker News

Htmlshell - generate HTML skeletons

htmlshell.com

21–30 of 30 posts

Re: Htmlshell - generate HTML skeletons

#21
post #17

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...

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

#22
post #6

The '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'.

OP is not the creator of the site. You can email him here (from contact link at bottom of page): steve.niles@htmlshell.com

Re: Htmlshell - generate HTML skeletons

#24
post #17

Earlier 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.

How often are you actually typing , , and that it actually makes you less efficient? This reminds me of all the ASI discussions that have been going on lately.

Re: Htmlshell - generate HTML skeletons

#25

Why 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.

Just so that it doesn't make any difference to you or your presentation doesn't mean that you should avoid it. It is a best practice to include them and semantically right thing to do. It gives a structure to your document and defines what your document is about.

I don't see it as a redundant tag, not at all.

Re: Htmlshell - generate HTML skeletons

#27

Why 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 would say it's more complicated to rely on omission rules.

Also you can simply not indent html and body.

Re: Htmlshell - generate HTML skeletons

#29

Why 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.

If it doesn't make much difference then you do it your way and I'll do it mine. What difference does it make? Plus, you can choose to indent however you wish so that's not much of a reason.

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

#30
post #15

Remember to have a backup for the jQuery googleapis call, you need to have this right after it: window.jQuery || document.write(' ')

Inserting DOM elements via document.write will kill the performance of your site. Don't do it.
Post reply on HN