Home > Web Front-end > HTML Tutorial > Two ways for HTML to load external css files

Two ways for HTML to load external css files

巴扎黑
Release: 2017-04-01 15:16:17
Original
2164 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template