1. Classification of Style sheets
1.1 Inline style sheet
Combined with HTML display, the control is accurate, but reusability is poor, redundancy is many.
<p style= "font-size:14px;" > Inline style Sheets </p>
1.2 Inline style Sheet
embedded in a Web page as a separate area must be written inside the head Tag.
1.3 External style Sheets
Create a new CSS file to place the style Sheet. If you call a style sheet in an HTML file, you need to right-click in the HTML file---css style----attach the style sheet. The link connection method is generally used.
<style type= "text/css" >
*//format works on all tags
{
margin:0px;
padding:0px;
}
</style>
2.1 Selector
1. Tag Selector. Use the tag name to make the Selector.
<style type= "text/css" >
P//format works on P tags
{
Style
}
</style>
2.class Selector. It's all "." Beginning.
3.ID Selector. Start with "#".
<div id= "style name" >
the ID represents unique and can only be used Once.
4. Composite Selector.
1), separated by ",", to indicate Juxtaposition.
2), separated by a space, indicates descendants
3), Filter ".".
3. Status of hyperlinks
CSS style Sheets