CSS (cascading style sheets)

Source: Internet
Author: User

Cascading Style Sheetsis a computer language used to represent file styles such as HTML (an application of the standard universal language) or XML (a subset of the standard Universal Markup Language). CSS is currently the latest version of CSS3, is to be able to truly achieve Web page performance and content separation of a style design language. Compared to the performance of traditional HTML, CSS can control the placement of objects in the Web page with pixel-level precision, support almost all font size styles, have the ability to edit Web objects and model styles, and be able to conduct preliminary interaction design, is currently based on the best performance design language text display. CSS can be based on the understanding of different users to simplify or optimize the writing, for all types of people, have a strong legibility. Development History CSS1As a recommendation, CSS1 was released on December 17, 1996. This recommendation was re-revised on January 11, 1999. CSS2As a recommendation, CSS2 was released on January 11, 1999. CSS2 adds support for media (printers and auditory devices) and downloadable fonts. CSS3CSS3 plans to divide the CSS into smaller modules. There are three ways to use style sheets on a site page:
    1. An linking (also called an external style): Links a Web page to an external style sheet.
    2. Inline embedding (also called Inner page style): Creates an embedded style sheet on a Web page.
    3. Inline inline (also called inline style): Applies an inline style to individual page elements.
Among them, priority: inline > Embedded > External style sheet external style sheets are ideal when styles need to be applied to many pages. With an external style sheet, you can change the appearance of the entire site by changing a file.   Internal style sheetAn internal style sheet can be used when a particular style is required for a single file. You can define an internal style sheet in the head section through the <style> tag. Inline styles you can use inline styles when special styles need to be applied to individual elements. The way to use inline styles is to use style attributes in related tags. Style properties can contain any CSS properties. Layout FeaturesFor spiders crawling a site page, if there are too many garbage code, will make the search spider to its unfriendly, distrust, while the spider crawl speed will therefore slow down, for the website SEO, is a big taboo.  As with the traditional table page, we need to optimize the site, which requires the use of css+div;  I. Streamline the code and reduce the difficulty of refactoring. Two. Web Access speed three. SEO optimization four. browser compatibility five. Css+div Web page layout often made a small mistake

CSS (cascading style sheets)

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.