How to write the parent and child directories of HTML relative paths

How to write the parent and child directories of HTML relative paths
How to indicate the parent directory
../ represents the parent directory of the source file, ../../ represents the parent directory of the source file, and so on.
Assume that the path to info.html is: c:\Inetpub\wwwroot\sites\blabla\info.html
Assume that the path to index.html is: c:\Inetpub\wwwroot\sites\index.html
The code to add a hyperlink to index.html in info.html should be written like this:
<a href = "../index.html">index.html</a>
Assume that the path to info.html is: c:\Inetpub\wwwroot\sites\blabla\info.html
Assume that the path of index.html is: c:\Inetpub\wwwroot\index.html
The code to add a hyperlink to index.html in info.html should be written like this:
<a href="../../../index.html">index.html</a>
Assume that the path to info.html is: c:\Inetpub\wwwroot\sites\blabla\info.html
Assume that the path to index.html is: c:\Inetpub\wwwroot\sites\wowstory\index.html
The code to add a hyperlink to index.html in info.html should be written like this:
<a href = "../wowstory/index.html">index.html</a>
How to indicate that a sub-directory references a file in a sub-directory? Simply write the path of the sub-directory file. Assume that the path to info.html is: c:\Inetpub\wwwroot\sites\blabla\info.html Assume that the path to index.html is: c:\Inetpub\wwwroot\sites\blabla\html\index.html The code to add a hyperlink to index.html in info.html should be written like this: <a href = "html/index.html">index.html</a>
Assume that the path to info.html is: c:\Inetpub\wwwroot\sites\blabla\info.html
Assume that the path to index.html is: c:\Inetpub\wwwroot\sites\blabla\html\tutorials\index.html
The code to add a hyperlink to index.html in info.html should be written like this:
<a href = "html/tutorials/index.html">index.html</a>

<<:  Docker View the Mount Directory Operation of the Container

>>:  How to copy MySQL table

Recommend

How to calculate the value of ken_len in MySQL query plan

The meaning of key_len In MySQL, you can use expl...

MySQL: Data Integrity

Data integrity is divided into: entity integrity,...

Markup Language - Print Style Sheets

Click here to return to the 123WORDPRESS.COM HTML ...

Detailed analysis of mysql MDL metadata lock

Preface: When you execute a SQL statement in MySQ...

What you need to know about creating MySQL indexes

Table of contents Preface: 1. Create index method...

CSS3 achieves cool sliced ​​image carousel effect

Today we will learn how to use CSS to create a co...

Detailed explanation of the binlog log analysis tool for monitoring MySQL: Canal

Canal is an open source project under Alibaba, de...

MySQL case when usage example analysis

First we create the database table: CREATE TABLE ...

Six methods for nginx optimization

1. Optimize Nginx concurrency [root@proxy ~]# ab ...

Design of image preview in content webpage

<br />I have written two articles before, &q...

Take you to understand the event scheduler EVENT in MySQL

The event scheduler in MySQL, EVENT, is also call...

Detailed explanation of common template commands in docker-compose.yml files

Note: When writing the docker-compose.yml file, a...

Data URI and MHTML complete solution for all browsers

Data URI Data URI is a scheme defined by RFC 2397...