HTML File Pattern

This is an archived post from the ExtJS era — the code may be obsolete, but the principles often still apply.

Code in this post can be obsolete, however, principles and theory may still apply.

We don't create HTML files too often these days, nevertheless, here is the pattern.

Basic HTML Page

4 comments

  1. jsakalosApril 6, 2008archive
    I have added doctype to this template. If you encounter some strange rendering issues in Internet Explorer, one of the first steps is to remove the doctype and let IE run in quirks mode.
  2. jsakalosApril 6, 2008archive
    vim modeline is not exactly at the beginning of the file so ~/.vimrc should contain entry: <pre> set modeline set modelines=5 " or more </pre>
  3. DenilsonJanuary 20, 2010archive
    Is there any real reason to not have a DOCTYPE nowadays? This info is from 2008, we are in 2010, is it still valid? This warning is also written here: http://www.extjs.com/learn/Tutorial:Application_Layout_for_Beginners
  4. thezverMarch 3, 2010archive
    I include scripts inside the body. browsers will load them much faster , and the same time will already show background/ whatever. it's because some simultaneous-loading limitations for the scripts in header.

Comments are closed on archived posts.