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 Build a Docker image using Dock...
Introduction to structural pseudo-class selectors...
SQL is the main trunk. Why do I understand it thi...
1. Transaction characteristics (ACID) (1) Atomici...
I. Introduction First, let me explain the version...
mysql master-slave configuration 1. Preparation H...
1. Introduction to Data Integrity 1. Introduction...
Table of contents Inheritance and prototype chain...
This article shares the specific code of JS to ac...
Every visit will generate Cookie in the browser, ...
Table of contents 1. Requirements description 2. ...
The solution to forgetting the initial password o...
Table of contents Observer Pattern Vue pass value...
Preface In terms of layout, Gobang is much simple...
1. Set the list symbol list-style-type: attribute...