css--begins

Source: Internet
Author: User


    • 1, what is CSS?

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.





    • 2, why use 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.