My knowledge of CSS is very shallow, according to the code to deepen the memory!
CSS styles are divided into three types:
1: element inline style sheet
2: Document inline style sheet
3: Using an external style sheet
I have drawn the following
Http://www.w3school.com.cn/tiy/t.asp?f=html_a take a look at yourself
Note that the "CSS Foundation. css" That is pointing externally is local.
<! DOCTYPE html><link rel= "stylesheet" type= "Text/css" href= "CSS basics. html > <!--This is a link that is imported from an external CSS, but this thing has a low priority and does not appear. - <style type= "Text/css" > a{ font-size:80px; color: #59ed45; } </style> <a style= "font-size:30px; color: #ff335f;" > I was controlled by an element-embedded style sheet, cascading style sheets =cascading style Sheets, I have the highest priority!! </a> <!--element inline style sheet --</body>
CSS Basics of HTML (understanding what CSS is and how CSS works)