HTML to CSS

Source: Internet
Author: User

Summarize:
HTML has come to an over, today into the CSS course. CSS is a cascading style sheet.

First, the introduction of CSS methods:
1. Outreach: <link rel= "stylesheet" href= "CSS Address" >.
2. Inline: In the Head tab section write <style></style> label.
3. Inline: Write the style attribute in the Styles tab you need to set.

The priority of these three ways of introduction:
Inline is the highest, and inlining and outreach is to see where they are sorted in the HTML file. Because the HTML parsing code is parsed from top to bottom.

Second, the selector:
1.id selector: #
2.class selector (class selector):.
3. Element selector: Tag name
4. Property selector: []
5. Descendant selector: space
6. Child element Selector:>
7. Wildcard Characters: *

The difference between block-level elements and inline elements:

Block-level elements:
1. Exclusive Line
2. Content size does not affect element size
3, can be set width and height
4. Inline and block-level elements can be nested
5, the outer margin on the upper, down, left, right have a role
6, the inner margin on the upper, down, left, right have a role

Inline elements:
1. Sorting in sequence
2, can not set width and height
3. Content size does not affect element size
4, the outer margin only to the left, the right has the influence
5, the inner margin on the upper, down, left and right there are left left and right (in the IE6, only the display of the two. Incompatible on, down)

HTML to 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.