Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
css1 [2009-09-03 10:11]
Joakim Forsgren
css1 [2017-09-01 14:54] (current)
Line 15: Line 15:
  
 <​head>​ <​head>​
-<link rel="​stylesheet"​ type="​text/​css"​ href="​mystyle.css" ​/>+<link rel="​stylesheet"​ type="​text/​css"​ href="​mystyle.css">​
 </​head> ​ </​head> ​
  
Line 91: Line 91:
 -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
 </​code>​ </​code>​
- 
 === Multiple Styles Will Cascade into One === === Multiple Styles Will Cascade into One ===
   - Browser default ​   - Browser default ​
-  - External style sheet +  - External style sheet, in read order
   - Internal style sheet (in the head section) ​   - Internal style sheet (in the head section) ​
   - Inline style (inside an HTML element) ​   - Inline style (inside an HTML element) ​
 So, an inline style (inside an HTML element) has the highest priority, which means that it will override a style defined inside the <​head>​ tag, or in an external style sheet, or in a browser (a default value). So, an inline style (inside an HTML element) has the highest priority, which means that it will override a style defined inside the <​head>​ tag, or in an external style sheet, or in a browser (a default value).