23 thAugust 2011
by Tomasz Libich
For last few years front-end developers were usually treated as "less-important" within many development teams. And now, at so many websites we can notice how big mistake it was...
What modern front-end developers should think about, if they want to develop websites with longer future life? In the first place, their code should be web standards consistent not for yesterday, but for tomorrow!
- website structure, presentation layer and behaviours should be fully separated
- stylesheets should be used to create pages layout
- the HTML code should be HTML5, XHTML1.0 Strict (or Transitional if there is an important reason)
- website structure should be well-considered, no tricks, no empty tags etc.
- css classnames should be in relation to structure, not to design (eg. "mainNavigation", not "longGreenBarAtHeader")
- website behaviour should be determined by scripts working at DOM (if necessary, not browser version or number but access to objects should be tested)
- accessibility attributes should be included