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