Introduction Method of 01-css

Source: Internet
Author: User

There are three ways to introduce CSS in HTML:

    1. inline style
    2. inline style
    3. External styles

3.1-Link

3.1 Import Type

Introduction to CSS

Now the Internet front end is divided into three layers:

    • HTML: Hypertext Markup Language. Describe the page structure from a semantic perspective.
    • CSS: Cascading style sheets. Responsible for the page style from an aesthetic standpoint.
    • Js:javascript. Describe page behavior from an interactive perspective

Css:cascading style Sheet, cascading style sheets. The function of CSS is to add various styles to the HTML page label, and define the display effect of the page . Simple sentence: CSS separates the content of the Web page from the display style , which improves the display function.

The latest version of CSS is CSS3, and we are currently studying css2.1

Next, let's talk about why we want to use CSS.

HTML flaws:
    1. Not adaptable to multiple devices
    2. Requires the browser to be sufficiently intelligent to be large enough
    3. Data and display are not separated
    4. Function not strong enough
CSS Benefits:
    1. Separating the data from the display
    2. Reduce network traffic
    3. Make the entire site visually consistent
    4. Increased development efficiency (reduced coupling, one person is responsible for writing HTML, one person is responsible for writing CSS)

For example, there is a style that needs to be displayed on 100 pages, if it is HTML to implement, then write 100 times, now have CSS, just write it again. Now, HTML provides only data and some controls, completely giving CSS a variety of styles.

Introduction Method of 01-css

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.