Tuesday, 12 April 2016

What is CSS?

What is CSS?

CSS is the key presentational technology that is used in website design.
Prior to CSS, nearly all of the presentational attributes of HTML documents were contained within the HTML markup; all font colors, background styles, element alignments, borders and sizes had to be explicitly described, within the HTML.
As a result of, development of large web sites, where fonts and color information were repeatedly added to every single page, became a long and expensive process.
CSS solve these problems, by allowing web designers to move much of that formatting information to a separate style sheet resulting in considerably simpler HTML markup.

Advantages of Using CSS

The biggest advantage of CSS is that it allows separating content of an html document from the style and layout of that document. It can thus make documents much easier to maintain and give much better control over the layout of your web pages, because content of an entire set of HTML pages can be easily controlled using one or more style sheets.
Here are some more advantages, why one should opt for designing website using CSS?
  • CSS Save lots of time — CSS gives lots of flexibility to set the properties of an element. You can write CSS once; and then the same code can be applied to the groups of HTML elements, and can also be reused in multiple HTML pages.
  • Easy maintenance — CSS provide an easy means to update document formatting and maintain consistency across multiple documents. By making one change to the website's CSS, elements in all the web pages will be updated automatically.
  • 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.
  • 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 presentational elements and attributes.
  • Multiple Device Compatibility — CSS can also allow the HTML document to be optimized for more than one type of device or media. Using CSS the same HTML document can be presented in different viewing styles for different rendering devices such as computer screen, cell phones, printer, etc.

No comments:

Post a Comment