Monday, November 10, 2014

CSS (Cascading Style Sheet)

One important lesson in comp-sci 1 is CSS.

CSS, or Cascading Style Sheet, deals with the presentation domain of designing your documents. You would want CSS to design your webpage.
 why:

Source: http://smashinghub.com/
  • much richer document presentation
  • possible to use same style on multiple pages
  • decreases page size
  • reduction of workload, and
  • if HTML is for content, then CSS is for presentation.
There are 3 implementations of CSS.
They are:

  1. In line
  2. Embedded/Internal, and
  3. External
CSS has 4 selectors which are the Element, Class, ID, and Pseudo Selectors which are useful for selecting tagged element.

No comments:

Post a Comment