I believe that many people are not unfamiliar with urls. Of course, it does not rule out that many people do not know urls. Below, php Chinese website will lead you to explain what the format of urls is?
1: What is url
url is a uniform resource locator, which is used to specify the format of the location of resources such as HTML and images on the Internet. Each Each resource corresponds to an address on the Internet, and this website address is the URL.
url is the unified symbol of www, which is what we usually call the network address, and URLs are extensible. Generally, the uniform resource locator marks the protocol used by a computer.
2: What is the url format?
##The url format is composed of three parts, namely the resource type. , the host domain name where the resources are stored, and the resource file name and other three file names, the syntax is: protocol :// hostname[:port] / path / [;parameters][?query]#fragment1.protocol: The most commonly used protocol is http protocol, which is also the most widely used protocol. The format is: HTTP://2.hostname: Hostname mainly stores the IP address, but some hostnames are also the username and password required to connect to the server. 3.portport is the port number. Generally, the output protocol has a port number, and http is the default 80. 4.pathpath is used to represent a directory on the host. 5.parametersparameters are mainly used to specify optional options for parameters. 6.queryquery is to pass parameters to dynamic web pages. If multiple parameters appear, the parameters must be separated by symbols. 7.fragmentfragment is a string, mainly used for fragments in network resources. The above is the complete introduction of what url is. If you want to know more about
HTML video tutorial, please pay attention to php Chinese website.
The above is the detailed content of what is url. For more information, please follow other related articles on the PHP Chinese website!