The general syntax format of URL is (brackets [] are optional): protocol://hostname [:port]/path/[; Parameter] [? Query] # fragment
Extended data:
Format description:
1. protocol: specifies the transport protocol used. The following table lists the valid schema names for protocol attributes. The most commonly used protocol is HTTP, which is also the most widely used protocol in WWW.
2. Hostname: refers to the domain name system (DNS) hostname or IP address of the server where the resource is stored. Sometimes, the username and password (format: username: password @ hostname) required to connect to the server can also be included before the hostname.
3.port: an integer, optional; When omitted, the default port of the scheme is used, and all transport protocols have default port numbers, for example, the default port of http is 80. If omitted, the default port number is used. Sometimes, for security or other reasons, you can redefine the port on the server, that is, use non-standard port numbers. At this point, the port number cannot be omitted from the URL.
4. Path: A string separated by zero or more "/"symbols, which is usually used to indicate the directory or file address on the host.
5. Parameter: This is an option to specify special parameters.
6. query: optional, used for dynamic web pages (such as CGI, ISAPI, PHP/JSP/ASP/ASP). NET technology), there can be multiple parameters, with "&"symbol, and the name and value of each parameter are separated by "=" symbol.
7.fragment: a string used to specify a fragment in a network resource. For example, if there are multiple noun explanations in a web page, you can use fragment to directly locate one noun explanation.
Baidu Encyclopedia-Website
Baidu Encyclopedia-Website Format