href="Write here the address of the web page to be redirected"; [Note]: At first, we are writing two pages to jump to each other, or to jump to other web pages directly through the URL. Web page one code: we write two"/> href="Write here the address of the web page to be redirected"; [Note]: At first, we are writing two pages to jump to each other, or to jump to other web pages directly through the URL. Web page one code: we write two">
Home >Web Front-end >HTML Tutorial >Summary of a tag-img tag-absolute/relative path example tutorial
(1)、0e126370438b71664e36a4233f68e8275db79b134e9f6b82c0b36e0489ee08ed href="Here is the address of the web page to jump to"; Jump between two pages, or jump to other web pages directly through the URL.
Web page code: We write two web pages and jump between them
<html> <head> <title>网页一</title> </head> <body> <a href="网页2.html">跳转网页2</a> </body> </html>
<html> <head> <title>网页二</title> </head> <body> <a href="网页1.html">跳转网页1</a> </body> </html>
It’s like this! What about the path in our "href=' '" if web page 2 is in another folder? Of course, look at the picture.
Webpage 1 Jump to Webpage 2
# #In fact, we often see it when we go online, so what does this mean? What this means here is based on the current file, which is "
Webpage 1", which means jumping toWebpage 2# under the subfolder . ##中文;But the problem comes again, I want to Webpage 2 Jump to Webpage 1 What should I do if I go to this? Here we will introduce a little thing
../This represents Return to the previous level folder Isn’t the previous level of web page 2 the subfolder ! Isn’t the web page at the same level as the subfolder web page 1!
So The code for webpage 2 to jump to webpage 1 is like this
1. Relative path
This kind of path is called a relative path, which means relative With the current file, where is the file you are looking for? Of course, we have another one, which is absolute path but it is not recommended.
Just the one after the drive letter! File:/// in front is not required
Finally, here’s something Little thing, yesterday I talked about inserting pictures into web pages
##1. Inserting pictures<html> <head> <title>插入图片</title> </head> <body> <img src="img/01.jpg"> </body> </html>
(2) Path [Note]: Since my files are placed like this, my pictures are the pictures in the img folder of the html folder The picture named 01.jpg. Also note here that the format path format of your image is different from the image format and it cannot be displayed!
The above is the detailed content of Summary of a tag-img tag-absolute/relative path example tutorial. For more information, please follow other related articles on the PHP Chinese website!