Home > Web Front-end > HTML Tutorial > what is url

what is url

云罗郡主
Release: 2018-12-13 15:00:35
Original
9037 people have browsed it

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?

what is url1: 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?

what is url

##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]#fragment

1.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.port

port is the port number. Generally, the output protocol has a port number, and http is the default 80.

4.path

path is used to represent a directory on the host.

5.parameters

parameters are mainly used to specify optional options for parameters.

6.query

query is to pass parameters to dynamic web pages. If multiple parameters appear, the parameters must be separated by symbols.

7.fragment

fragment 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!

Related labels:
url
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template