HTML style sheet greatly improves productivity

Source: Internet
Author: User

Style sheets greatly increase productivity

A style sheet defines how HTML elements are displayed, just as the font labels and color properties of HTML 3.2 do. Styles are usually saved in an external. css file. By simply editing a simple CSS document, an external style sheet gives you the ability to change the layout and appearance of all pages in the site at the same time.

CSS can be called a breakthrough in WEB design because it allows you to control the style and layout of multiple pages at the same time. As a web developer, you can define a style for each HTML element and apply it to as many pages as you want. To make a global update, simply change the style, and all elements in the site are automatically updated. Click here to see if there is any answer you want

Multiple styles are stacked as one

Style sheets allow style information to be specified in several ways. Styles can be specified in a single HTML element, in the header element of an HTML page, or in an external CSS file. You can even reference multiple external style sheets within the same HTML document.

Stacking order

What style is used when the same HTML element is defined by more than one style?

Generally, all styles are stacked in a new virtual style sheet according to the following rules, where the number 4 has the highest precedence.

    1. Browser default settings
    2. External style sheet
    3. Internal style sheet (inside the
    4. Inline style (inside HTML elements)

Therefore, the inline style (inside the HTML element) has the highest precedence, which means that it will take precedence over the style declarations in the:

HTML style sheet greatly improves productivity

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.