1. Import the basic style of external CSS filesUse the <link> tag to introduce an external style sheet, which usually has two attributes:
<link href="style.css" rel="stylesheet" /> 2. Basic rules of the path
3. Examples of common path writing1. index.html and style.css files are in the same folder <link href="style.css" rel="stylesheet" /> 2. The css file is in the same folder as the html file <link href="c/style.css" rel="stylesheet" /> 3. The parent folder of html and the parent folder of css files are in the same folder As shown in the figure: there are folders b and b2 under folder a, style.css is in folder c under folder b, and index.html is in folder b2.
<link href="../b/c/style.css" rel="stylesheet" /> This concludes this article on how to write paths when HTML files import external CSS files. For more information about how to import external CSS paths from HTML, please search previous articles on 123WORDPRESS.COM or continue to browse the related articles below. We hope that everyone will support 123WORDPRESS.COM in the future! |
<<: CSS3 achieves infinite scrolling/carousel effect of list
>>: CSS pseudo-element::marker detailed explanation
Table of contents 1. js statement Second, js arra...
Regarding the high-performance distributed memory...
Tomcat server is a free and open source Web appli...
Table of contents Write in front Business code us...
What is an inode? To understand inode, we must st...
1. Create a test table CREATE TABLE `mysql_genara...
When the user's home directory becomes larger...
Basics In a relational database, each data table ...
Table of contents 1. Introduction 2. Deployment E...
1. Online installation Currently only tried the L...
Table of contents 1. Installation Environment 2. ...
[LeetCode] 196.Delete Duplicate Emails Write a SQ...
How to find slow SQL statements in MySQL? This ma...
An optimization solution when a single MYSQL serv...
Preface Recently, when working on a high-availabi...