A detailed introduction to hyperlinks in HTML

黄舟
Release: 2017-05-27 14:11:41
Original
2913 people have browsed it

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:

百度
Copy after login

2. Local link:

图片
Copy after login

3. FTP link

进入
Copy after login

4. Email link

E-MAIL
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!