Home > Web Front-end > Front-end Q&A > What is the url called in the html file

What is the url called in the html file

青灯夜游
Release: 2021-11-17 15:02:19
Original
6403 people have browsed it

In HTML files, URL is called "Uniform Resource Locator", which is a representation method used to specify the location of information on the Internet's World Wide Web service program. It is a method specially designed to identify the location of resources on the Internet. An addressing method; simply put, it is the address of a web page.

What is the url called in the html file

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

In the html file, the url is called "Uniform Resource Positioning System".

The resources available on the Internet can be represented by simple strings, and this document describes the syntax and semantics of such strings. These strings are called: "Uniform Resource Locators" (URLs).

Uniform resource locator (URL) is a representation method used to specify the location of information on the Internet's World Wide Web service program. It is an addressing method specifically designed to identify the location of resources on the Internet. The web address we usually refer to is the URL.

The url format is composed of three parts, namely the resource type, the host domain name where the resource is stored, and the resource file name. The syntax is:

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

传输协议://主机IP地址或域名地址/资源所在路径和文件名
Copy after login

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 is mainly used to store IP addresses, 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.

Recommended tutorial: "html video tutorial"

The above is the detailed content of What is the url called in the html file. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template