First, style sheet classification
1, inline style sheet <p style= "FONT-SIZE:14PX;" > Inline style Sheets </p>
2. Inline style sheet (must be written in the head tag)
<style type= "Text/css" >
P
{
Style
}
</style>
3, external style sheet (create a new CSS to put the style sheet, if you need to call the stylesheet need to right-click in the HTML file →css style → attach style sheet)
Some labels have default borders and need to be removed first
Second, selector
1. Tag Selector, use tag name as selector.
2.class selector (all with ".") Beginning
3.id selector (all starts with "#")
4. Composite Selector
(1) By, separating, indicating juxtaposition, both of the same style
(2) separated by spaces, indicating descendants
(3) filter "."
Third, the style of the link
The style of the hyperlink has four items, namely: link, visited, hover, active
Hyperlink tags that act on a web page
HTML style sheet CSS