Saturday, 8 November 2014

CSS

Lets go to our next topic and that is CSS.
CSS stands for Cascading Style Sheet.


Cascading: Multiple styles can overlap in order to specify a range of style from a whole web site down to a unique element. Which style gets applied pertains to the rules of CSS cascading logic.

Style:  CSS deals specifically with the presentation domain of designing a web page (color, font, layout, etc).

Sheet: Normally, CSS is a file separate from the HTML file –linked to the HTML file through its <head> (exceptions apply).



Significance of CSS
  • Allows for much richer document appearances
  • Reduce workload by centralizing commands for visual appearance instead of scattered throughout HTML doc.
  • Use same style on multiple pages
  • Reduce page size
  • Use HTML for content; CSS for Presentation.

3 Implementations
  1. In-line - as attribute
  2. Embedded/Internal - as a style tag
  3. Internal - linked from CSS files

Selectors
  • Element Selectors
  • Class Selectors
  • ID Selectors
  • Pseudo Selectors

(c) Sir Tom :)

No comments:

Post a Comment