CSS styles

  • Most powerful and useful feature of HTML
    • Give you pretty good control over layout, colors, sizes and text treatments not possible otherwise.
    • Instead of suggesting to the browser, with styles you dictate how content will be rendered.
  • If you can master styles, you can make your site look like you want it to.
  • And minimize differences between browser displays!
  • Download the css primer
  • Early 1996, W3C drafted CSS recommendation
    • No browser completely complies, but all are moving toward full compliance. (we'll see...)
  • CSS=Cascading Style Sheets
      • Styles can be inline (part of a tag)
      • In the head of a document (with <style type="text/css">)
      • Kept in an external style sheet (.css file)
    • Styles cascade from external style sheet, to internal style sheet to inline styles
    • Cascade means that they combine/overwrite as they go.