What is CSS and Importance of CSS in Web Technology

What is CSS?

  • CSS stands Cascading Style Sheets.
  • Styles define how to display HTML elements.
  • External Styles Sheets can save a lot of work.
  • CSS defines layout of HTML documents.

Importance of CSS :
  • CSS defines HOW HTML elements are to be displayed.
  • Styles are normally saved in external .css files. External style sheets enable you to change the appearance and layout of all the pages in a website, just by editing one single file.

Advantages :

  • Improves website Presentation.
  • External CSS helps web pages load faster.

Disadvantage :

  • Browser dependent.

CSS Syntax :

A CSS rule has two main parts : a selector , and one or more declarations :
  • The selector is normally the HTML element you want to style.
  • Each declaration consists of a property and a value.
  • The property is the style attribute you want to change. Each property has a value.