search
HomeCommon ProblemWhat is the protocol used to locate hypertext documents?

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)