CSS inline style and external link Style
A Brief Introduction to the inline style and external style of CSS:
Many friends may have been concerned about the concept in the title or did not pay special attention to it, but it does not mean that they did not use the corresponding method to set the style, however, it is better to understand the methods they represent than to understand them. Next we will introduce their respective concepts.
1. inline style:
The so-called inline style is the style written directly inside the label. The Code is as follows:
<Div style = "color: red"> ant tribe </div>
The above Code sets the font color to red.
Ii. External chain style sheet:
The external link style sheet uses the link tag in the webpage header to reference a separate css file. The Code is as follows:
<Link href = "style.css" rel = "stylesheet" type = "text/css"/>
Iii. Embedded style sheets:
Embedded style sheets use <style type = "text/css"> </style> to define css styles on the current page. The Code is as follows:
<Style type = "text/css"> div {color: red} </style>
The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 11766.
For more information, see: http://www.softwhy.com/divcss/