Tuesday 30 May 2017

Understanding Cascading Style Sheets (CSS)

Understanding Cascading Style Sheets (CSS)

First of all, let's see what CSS is ? What do you mean by CSS? CSS is also known as Cascading Style Sheet. CSS enables you to indicate different style properties for a given HTML component, e.g. backgrounds, colours, text styles and so forth. CSS is the key presentational technology that is utilized as a part of web design . Preceding CSS, almost the majority of the presentational traits of HTML archives were contained inside the HTML markup; all text style hues, foundation styles, component arrangements, outskirts and sizes must be unequivocally portrayed, inside the HTML. Accordingly of, improvement of extensive sites, where text styles and shading data were over and over added to each and every page, turned into a long and costly process. CSS tackle these issues, by permitting website specialists to move quite a bit of that arranging data to a different template bringing about significantly more straightforward HTML markup.

Benefits of using CSS:

The benefit of using CSS is that it permits isolating content of an html doc from the style and layout of that particular document. It can in this manner make documents considerably less demanding to maintain and give much better control over the format of your site pages, since content of a whole arrangement of HTML pages can be effortlessly controlled utilizing one or more style templates. Here are some more benefits, why one ought to settle on designing your site utilizing CSS?
  •  It saves a lot of your time as you don't need to write the same code again and again. 
  •  Faster loading of pages. 
  •  Easier maintenance. 
  • Offers multiple device compatibility. 
  •  Provides superior styles to HTML.

Different types of CSS:

Following are the various types of CSS-
  •  Inline stylesheet  
  • Embedded stylesheet
  •   External stylesheet 

Practically, CSS documents are simply text files, so they are for the most part not large to start with. On the off chance that your whole site utilizes 1 CSS file, you additionally get the advantage of that document being stored after it is at first stacked. This implies there could be a slight performance hit on the first page a few visits, however ensuing pages will utilize the cached CSS file, so any hit would be negated.

Featured post

A Look At the CSS Selectors

A Look At the CSS Selectors As seen earlier, now we know that a Cascading Style Sheet (CSS) forms an integral part of web design . In th...

Search This Blog

Translate