We can write a CSS Stylesheet and HTML markup in many different ways.

Sergio Jasinski explains How ‘not’ to write a Stylesheet !

  • No ‘!important’
  • Avoid ‘@import’
  • No ‘expressions’
  • Avoid Inline Codes
  • No Design based selector names
  • Use Comments
  • Never forget your DOCTYPE.
  • Say no to inline styling
  • Avoid over use of divs and CSS Classes
  • Consider browser resolutions
  • Maintain Cross-Browser Compatibility
  • Don’t use heading tags randomly
  • Use absolute position only when you have to “NO CHOICE”
  • Always validate

Related Links

Advertisements

2 thoughts on “Best practices for writing HTML and CSS

Share your thoughts

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s