One of the great advantages of using CSS in an external file is that one rule can apply to many pages . Here is a contrast of the three CSS approaches:
Inline Styles - to change the color to blue, you need to find every place where the red style exists, possibly on many pages.
<span style = "color: red;"> This is a warning. </span>
Page styles - this allows you to mark something - in this case a warning, not what it looks like . You can change all the βwarningsβ on the page to instead have a yellow background by changing one line of code at the top of the page.
<head>
<style type = "text / css">
.warning {color: red;}
</style>
<body>
<span class = "warning"> This is a warning. </ span *>
The external file is the same code as above, but the fact that the style information is in a separate file means that you can use the warning class on many pages.
source share