Home  >  Article  >  What is the protocol used to locate hypertext documents?

What is the protocol used to locate hypertext documents?

青灯夜游
青灯夜游Original
2021-07-09 16:57:563456browse

The protocol used to locate hypertext documents is the URL. URL (Uniform Resource Locator) is a representation method used to specify the location of information on the Internet's World Wide Web service program; URL is the Uniform Resource Locator of WWW, which refers to a network address.

What is the protocol used to locate hypertext documents?

The operating environment of this tutorial: Windows 10 system, Dell G3 computer.

The protocol used to locate hypertext documents is the URL.

Uniform resource locator (URL) is a representation method used to specify the location of information on the Internet's World Wide Web service program.

On the WWW, each information resource has a unified and unique address on the Internet. This address is called URL (Uniform Resource Locator, Uniform Resource Locator), which is the Uniform Resource Locator of the WWW. It refers to the network address.

URL consists of three parts: resource type, host domain name where the resource is stored, and resource file name.

can also be considered to be composed of 4 parts: protocol, host, port, path

The general syntax format of URL is:

(with square brackets [] (optional):

protocol :// hostname[:port] / path / [;parameters][?query]#fragment

protocol

Specifies the transport protocol to use. The following table lists the valid scheme names for the protocol attribute. The most commonly used protocol is HTTP, which is also the most widely used protocol in the WWW.

hostname

is the Domain Name System (DNS) hostname or IP address of the server where the resource is stored. Sometimes, the hostname can also be preceded by the username and password required to connect to the server (format: username:password@hostname).

port (port number)

Integer, optional, when omitted, the default port of the scheme is used. Various transmission protocols have default port numbers, such as http The default port is 80. If omitted on entry, the default port number is used. Sometimes for security or other considerations, the port can be redefined on the server, that is, a non-standard port number can be used. In this case, the port number cannot be omitted in the URL.

path (path)

A string separated by zero or more "/" symbols, generally used to represent a directory or file address on the host.

parameters

This is an optional option for specifying special parameters.

query

Optional, used for dynamic web pages (such as those produced using CGI, ISAPI, PHP/JSP/ASP/ASP.NET and other technologies Web page) to pass parameters, there can be multiple parameters, separated by the "&" symbol, and the name and value of each parameter are separated by the "=" symbol.

fragment (information fragment)

String, used to specify the fragment in the network resource. For example, if there are multiple noun explanations in a web page, you can use fragment to directly locate a certain noun explanation.

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What is the protocol used to locate hypertext documents?. For more information, please follow other related articles on the PHP Chinese website!

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