View Sidebar

Tip #10: Why use CSS to separate content from presentation? – Lemuel Cabia

Why do we need to use CSS to separate content from presentation? Here are some of my insights.

  • It’s part of the web standards guidelines to use style sheets (CSS) to control layout and presentation. WCAG Web Accessibility Initiative Guidelines and Recommendation:
  • The aim for web developers is to remove all presentation from the html code, leaving it clean and semantically correct.
  • The site will be more accessible to a wider variety of devices.
  • It will be easier to make site-wide changes – one css file rather than all pages.
  • Smaller files = Faster download due to less code on the page.
  • Less code on the page = Easier to code
  • It allows users to customise to their own needs – style switchers.
  • More control over code = Can deliver code in preferred order for screen readers


Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter