head> Method 2:
Two methods for HTML to load external css files
Method 1:
Method 2:
rel="stylesheet"type="text/css" href="../test.css">
rel="stylesheet " it's necessary.
href="../css/test.css" In, ../ and / both refer to the root directory of the site. /css refers to the css folder in the root directory of the site.
The above is the detailed content of Two ways for HTML to load external css files. For more information, please follow other related articles on the PHP Chinese website!