skip to content
Note: You are reading this message either because you cannot see our css files, or because you do not have a standards-compliant browser.
NC STATE
DELTA

Tech Tips

Learn about Section 508 and the new NC State Web Accessibility Regulation

Learn more

Cascading Style Sheets (CSS)

CSS is what makes a web page look the way it does. It controls all the presentation, style, colors, and positioning of the content and (X)HTML.

(X)HTML is a structural markup language, by itself it was never meant to show presentation; only describe content like paragraphs, headers, page divisions, etc. However, HTML has been exploited and misused in recent years by providing presentational and style information; doing this decreases accessibility and hinders the end user from having a rich experience on the web by load time and reducing performance.

Using external CSS keeps your (X)HTML clean, separates your presentation from your content, increases accessibility, improves performance, allows for easy enhancements such as Ajax, and keeps code readable and maintainable.

Sample CSS Code

p {
     font-size:.8em;
     color:#222;
     padding:.5em;
     margin:.5em 0;
}

Suggested reading for beginners

Suggested reading for advanced users

© 2008 NC State University