Hyperlink: Also called URL (Uniform Resource Locator), which is the Uniform Resource Locator. The general effect is that when we click somewhere on the web page, the web page will automatically jump to another place.
General links follow the following requirements: host.domain:port/path/filename
For example, the W3C website address is: www.w3school.com.cn/html/index.asp. We explain each of the above words as follows:
scheme - defines the type of Internet service. The most common type is http
Host - defines the domain host (the default host for http is www)
domain - defines the Internet domain name, such as w3school.com.cn
:port - defines the port number on the host ( The default port number for http is 80)
Path - defines the path on the server (if omitted, the document must be located in the root directory of the website).
Filename - defines the name of the document/resource
Note: The service type defined by Scheme is:
http Hypertext Transfer Protocol An ordinary web page starting with http://. No encryption.
https Hypertext Transfer Protocol Secure Web Page. Decrypt all information exchanged. For example, Alipay's website address: https://www.alipay.com/
FTP file transfer protocol is used to download or upload files to the website.
file: File on the computer.
In fact, in web development, what we use isto define the path of the hyperlink
1. http link:
百度
2. Local link:
图片
3. FTP link
进入
4. Email link
Finally, let’s focus on the aim link: it is generally a place on the web page that jumps to after clicking. For example, the link "Return to Top" on the Taobao website page
Define anchor point:...
Link point:...
Of course, we can also go to other pages:
Define the aiming point:…
The above is the detailed content of A detailed introduction to hyperlinks in HTML. For more information, please follow other related articles on the PHP Chinese website!