With HTML4.0, all formatting code can be moved out of the HTML document and into a separate style sheet (.css).
How to use styles(Recommended learning: HTML introductory tutorial)
When the browser After reading a style sheet, it will format the document according to the style sheet. There are three ways to insert a style sheet:
External style sheet
When styles need to be applied to many pages, an external style sheet will be ideal choice. Using external style sheets, you can change the appearance of the entire site by changing one file.
<head> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head>
Internal style sheet
When a single file requires special styling, you can use an internal style sheet. You can define internal style sheets via the