There are three types of CSS used in HTML:
CSS is mainly used to beautify the format of the Web page, and is responsible for most of the style.
Key Benefits:
1, separating the data and the display,
2, reduce network traffic,
3, so that the entire site visual effects have been
4, improve the development efficiency
Three ways to use the style:
1, inline style
The style is written directly between lines of code, and the method writes the style with the highest precedence
<p style = "Color:green" > Your sister ~</p> this is written directly in the line, but generally rarely used, with priority issues
Difficult to modify in the case of large numbers of code ~
2, Inner style
<style type = "Text/css" > #写css文档 spen{ color:yellow} #多深都能找到 </style>
3, external style
3,1-Linked
Link rel = "stylesheet" href = "css file" This is a fixed mode is a linked style of the external
3,2 Import Formula
Style type= text/css @inport url (css file path) /style times as an import method for an external style
Front-end CSS