Cascading Style Sheets
CSS or cascading style sheets is a way to format web pages which separates the content from the actual style or
look of the page.
Benefits
- It is easy to give web pages a consistent look
- The styles you create can be applied to any page in your website
- It is easy to change the look of a website because you only have to update one css file
Limitations
- Not all browsers interpret CSS in the same way.
- You may achieve a look you like, only to find that it displays correctly in Interent Explorer but not in
Firefox.
Things to think about
- Cascading style sheets are created using a text or HTML editor.
- You need a good understanding of HTML
- You should test your style sheets in at least two browsers. For instance, Chrome, Edge, Internet
Explorer, Firefox, Opera, or Safari
Applying Styles using selectors
The selector is what you want the style to apply to.
A selector could be:
- an html tag (body, a, li, td etc.)
- a user defined class
- the name or id given to an html tag