Home  >  Article  >  Web Front-end  >  How to write HTML relative paths for upper-level directories and lower-level directories_HTML/Xhtml_Web page production

How to write HTML relative paths for upper-level directories and lower-level directories_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:43:002833browse

How to represent the upper-level directory
../ represents the upper-level directory of the directory where the source file is located, ../../ represents the upper-level directory of the directory where the source file is located, and so on.
Assume the info.html path is: c:Inetpubwwwrootsitesblablainfo.html
Assume the index.html path is: c:Inetpubwwwrootsitesindex.html
The code to add the index.html hyperlink to info.html should be written like this:
index.html
Assume the info.html path is: c:Inetpubwwwrootsitesblablainfo.html
Assume the index.html path is: c:Inetpubwwwrootindex.html
Add index to info.html The code for the .html hyperlink should be written like this:
index.html
Assume the info.html path is: c:Inetpubwwwrootsitesblablainfo.html
Assume the index.html path is: c:Inetpubwwwrootsiteswowstoryindex .html
The code to add the index.html hyperlink to info.html should be written like this:
index.html
How to indicate that a lower-level directory refers to a file in a lower-level directory, write the lower-level directory directly The path to the file is sufficient. Assume the info.html path is: c:Inetpubwwwrootsitesblablainfo.html Assume the index.html path is: c:Inetpubwwwrootsitesblablahtmlindex.html The code to add the index.html hyperlink to info.html should be written like this: index.html
Assume the info.html path is: c:Inetpubwwwrootsitesblablainfo.html
Assume the index.html path is: c:Inetpubwwwrootsitesblablahtmltutorialsindex.html
The code to add the index.html hyperlink to info.html should be written like this:
index.html

Statement:
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