CSS. What is it?

CSS (Cascading Style Sheets) is a suit of formatting parameters, which is applied to the elements of the web-page to control their shape and location.

Styles are convenient, practical and effective tools for the page makeup and text design, links, images and other elements. The advantages, given by the CSS, are described below.

The division of design and content

The idea of HTML-code being free from the design elements, such as color, script and other parameters, is as old as the world. Ideally, the web-page should contain only tags of logical formatting, and the view of elements is determined via styles. With such division the design formatting and site makeup can be operated simultaneously.

The integrated design of the documents

Site can’t be treated only as the list of the documents linked together, but it is also the integrated position of the main sets and their design. The use of the integrated design of titles, body text and other elements creates the succession between pages, makes the work with site and its perception easier for users. Also the use of styles greatly simplifies the design projecting for the developers.

Centralized storage

As usual, styles are stored in one or in several special files, the link to which is indicated in all of the site documents. Thanks to it, it is convenient to correct the style in one place, meanwhile design of the elements automatically changes on all of the pages, which are linked with the help of the mentioned file.

Advanced opportunities

In contrast to HTML, styles have more opportunities for design of web-pages elements.В  You may change the background colour of the element, add a border, determine the font, define the size, location and many other things.

Quick work

When holding the styles in a separate file, it is cached and extracted from the browser cache when accessing to it again. Therefore the code of web-pages is reduced and the time of documents downloading is reduced too.

Note

Cache is a special place on the user’s local computer, where the browser stores the files of the site when accessing it for the first time. When accessing it again, files are taken from the local disk, but not downloaded from the net. Such approach allows raising the speed of the web-page downloading.

Nowadays the modern approach to the sites creation assumes the active use of styles to control the elements form of the web-pages and their makeup. So called sectional make-up or the make-up with the help of the layer gets more admirers, and it supposes the knowledge of the CSS characteristics and their right use on the site.

Note

Conditionally, the web-page makeup is divided into the makeup with the help of the layers and table makeup, where the cells of the table act as the invisible modular grid. In what follows, under the term layer we’ll understand the element <DIV> or <SPAN>, to which the style parameters are added to change the design and position of the element.