HTML5 is the Blueprint of the Future. What's new in HTML 5?

TYPOGRAPHY

An open book depicting a content icon

NEW MODULES

Tools depicting an application icon

BEST PRACTICES

A red circle with a slash through it depicting deprecated/deleted elements

Best Practices in CSS 3

Best Practices

Think Progressive Environment

CSS 3 should be used to enrich and enhance an already fully functional experience.

Organize and Comment Vendor Specific Syntax

  • With proprietary syntaxes leading to bloated code, following a couple of simple
         rules will help keep code more organized.
  • Insert comments noting which browser the line of code is for.
  • List the proprietary browser code first.
  • List CSS 3 standard code items last in the declaration.

Use Fallbacks for Background Related Enhancements

With the possible values for backgrounds upgraded, it may be wise to provide a fallback value for non-supporting browsers and in the case of multiple backgrounds, list the most important element first.

Use Rotations, Animations & Scaling Sparingly

Subtle, tastefully selected events and animations are usually the best choice. Use new features carefully with an enhanced user experience in mind.

Care with Typography

Take care to ensure that typography related enhancements do not affect the readability of the site. The content should be accessible and readable. Think twice about using shadows, gradients or transforms on typographical elements.

Test Code in All Browsers with Fallbacks Enabled

New CSS 3 features may add more pressure in this area. Test in non-supportive browsers, temporarily removing some of the enhancements, one by one if necessary, to see the experience with fallback options enabled. Keep code organized and commented for ease during the quality assurance process.

CSS Compatibility and Internet Explorer

The following statement from The Microsoft Developer Network reads:

“Internet Explorer 8 is fully compliant with the CSS, Level 2 Revision 1 (CSS 2.1) specification and supports some features of CSS Level 3 (CSS3). Internet Explorer 9 Beta adds even more support for many CSS3 modules.”

This page has a complete listing of which CSS versions are supported in each successive release of IE, from version 5 to Beta 9, with IE 9 currently in Beta Testing. Its speculative release date is late Fall of 2010 to sometime in early 2011.

Top

Additional Resources

spacer image A pile of books stacked up and coming through a laptop computer.