Skip to content

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: http://www.w3.org/TR/WCAG10/wai-pageauth.html#tech-style-sheets
  • 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

Reference:

http://www.maxdesign.com.au/presentation/benefits/index07.htm