Cascading style sheets (cascading style Sheet), which defines how HTML elements are displayed to control the style and layout of a Web page.
After the introduction of CSS: HTML tags are specifically used to define the content of a Web page, and CSS is used to set its display effect.
CSS2.0 is currently a widely used cascading style sheet specification. CSS2.0 provides a mechanism that allows programmers to develop without regard to the display and the page, displaying problems that are later resolved by the artist. The actual development is generally first written by the art of the page, that is, static HTML, and then to the programmer to use the OK.
Here are 2 HTML, the 1th one does not use CSS, and the 2nd one uses CSS.
The role of CSS: rich expression, document size is small, easy to retrieve information, good readability.
The essence of CSS: separating the page content from the display style.
First, simplify the code of the Web page, improve the speed of access. External CSS files are saved in the cache by the browser, speeding up the download display and reducing the amount of code that needs to be uploaded.
Second, easy to maintain. Easy to modify the site style: as long as the CSS file changes, you can change the entire site style features. Avoid the modification of each page, greatly reduce the workload of repetitive work, but also can reuse style.
Third, the page content and display style are separated. Allows artists and programmers to focus on what they delete.
Research CSS, in fact, things are not much, after all, we are not specialized artists, there is a general understanding on the OK, the 1th is the CSS selector, the 2nd is the usual property settings.
css--begins