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

MySQL series tutorials for beginners

Table of contents 1. Basic concepts and basic com...

Example code for implementing a text marquee with CSS3

Background Here's what happened, Luzhu accide...

win2008 server security settings deployment document (recommended)

I had been working on the project before the New ...

Detailed explanation of the use of Docker commit

Sometimes you need to install certain dependencie...

Detailed description of ffmpeg Chinese parameters

FFMPEG 3.4.1 version parameter details Usage: ffm...

Implementing a puzzle game with js

This article shares the specific code of js to im...

Practice using Golang to play with Docker API

Table of contents Installing the SDK Managing loc...

CentOS8 installation tutorial of jdk8 / java8 (recommended)

Preface At first, I wanted to use wget to downloa...

10 SQL statement optimization techniques to improve MYSQL query efficiency

The execution efficiency of MySQL database has a ...

Practice of using Vite2+Vue3 to render Markdown documents

Table of contents Custom Vite plugins Using vite-...

Graphic tutorial on installing Ubuntu 18.04 on VMware 15 virtual machine

In the past few years, I have been moving back an...