Ad

Define CSS

CSS stands for Cascading Style Sheets, CSS is used to format the HTML elements and describe how they appear on the web browser. CSS provides an easy and effective way to style the HTML elements. Using CSS, you can specify a number of style properties for a given HTML elements.

Advantages of CSS

The biggest advantage of CSS is that it allows separating content of an HTML document from the style and layout of that document.

Some more advantages of using CSS in a website are:

  1. CSS Save lots of time: CSS code can be applied to the groups of HTML elements, and can also be reused in multiple HTML pages.
  2. Easy maintenance: By making one change in the CSS, all elements of the web pages will be updated automatically.
  3. Pages load faster: CSS enable multiple pages to share formatting, and reduce complexity and repetition in the structural content. It significantly reduces the file transfer size, which results in a faster page loading.
  4. Superior styles to HTML: CSS has much wider presentation capabilities than HTML, so you can give far better look to your HTML pages in comparison to the HTML presentation.
  5. Multiple Device Compatibility: CSS can also allow the HTML document to be optimized for more than one type of device. Using CSS the same HTML document can be presented in different devices such as desktop, laptop, mobile phones, tab etc.