Tips for creating enterprise-level HTML, CSS and JavaScript

Do you feel that your front-end code isn’t quite up to enterprise standards? Want some good tips on how to take your HTML, CSS, and JavaScript to the next level? Go to Enterprise CSS, Enterprise HTML, and Enterprise JavaScript for loads of useful tips and best practices.

Note: To eliminate any risk of misunderstanding I think it’s best to add that this is a joke – most of the tips are actually anti-best practice. The sad thing is that the front-end code of many “enterprise-level” sites and content management systems really do look like many of these “tips” have been taken seriously.

Some of my favourite tips are these:

I couldn’t find the following equally good tips:

  • Make sure to use span elements as block-level containers.
  • Use randomly created URLs that look like PGP public keys to make as few people as possible link to or bookmark other pages than your home page.
  • Never, ever use progressive enhancement when adding JavaScript.
  • The safest way of adding JavaScript events is to use HTML attributes like onclick.

Again, keep in mind that these tips are just making fun of bad practices.

Posted on November 11, 2010 in (X)HTML, CSS, JavaScript

Comments are disabled for this post (read why), but if you have spotted an error or have additional info that you think should be in this post, feel free to contact me.