English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Tutorial Básico de HTML

Mídia HTML

Manual de Referência HTML

HTML5 Tutorial Básico

HTML5 API

HTML5 Mídia

URL HTML

URL: abreviação de Localizador de Recursos Uniforme (Uniform Resource Locators), o navegador da Web solicita a página do servidor da Web através do URL. url is not an attribute, src and href are attributes, src is used to replace the current element, and href is used to establish a connection between the current document and the referenced resource, that is, the path referenced by src is the path to be loaded by img, etc., and the path referenced by href is the place to jump to.

HTML - Localizador de Recursos Uniforme (Uniform Resource Locators)

Um URL é um endereço de página da web.

Um URL pode ser composto por letras, como "pt.oldtoolbag.com" ou endereço de protocolo da Internet (IP): 192.168.1.10.A maioria das pessoas entra no site usando o nome do domínio do site para acessar, porque Os nomes são mais fáceis de lembrar do que os números.

URL - Localizador de Recursos Uniforme

O navegador da Web solicita a página do servidor da Web através do URL.

Quando você clica em um link em uma página HTML, o marcador <a> aponta para um endereço na Web.

Um Localizador de Recursos Uniforme (URL) usado para localizar documentos na Web.

Um exemplo de endereço de página da web:https://pt.oldtoolbag.com/html/html-tutorial.htmlGrammar rules:

scheme://host.domain:port/path/filename

Description:

    • scheme - defines the type of Internet service. The most common type is http

    • host - defines the domain host (the default host for http is www)

    • domain - defines the Internet domain, such as oldtoolbag.com

    • :port - defines the port number on the host (the default port number for http is 80)

    • path - defines the path on the server (if omitted, the document must be located in the root directory of the website).

    • filename - defines the document/the name of the resource

Common URL Schemes

The following are some URL schemes:

Schemeaccessfor...
httpHypertext Transfer Protocolwith http:// the ordinary web page at the beginning. Not encrypted.
httpsSecure Hypertext Transfer Protocolsecure web page, encrypting all information exchange.
ftpFile Transfer Protocolto download or upload files to a website.
file the files on your computer.

URL Character Encoding

URL can only use ASCII Character Set.

to send through the Internet. Since URLs often contain characters outside the ASCII set, URLs must be converted to a valid ASCII format.

URL encoding uses "%" followed by two hexadecimal numbers to replace non-ASCII characters.

URL cannot contain spaces. URL encoding usually uses + to replace spaces.

The Difference Between url, scr, and href in HTML

  • url is not an attribute, src and href are attributes, src is used to replace the current element, and href is used to establish a connection between the current document and the referenced resource, that is, the path referenced by src is the path to be loaded by img, etc., and the path referenced by href is the place to jump to.

  • src is the abbreviation of source, which represents the introduction of the file, the purpose of which is to load the file into the html page. When the browser parses, it will pause other content and load the src content first, and it must be loaded after the src content is loaded before executing the following. (Commonly used: img, script, iframe)

  • href is the abbreviation of Hypertext Reference, which represents a hypertext reference, pointing to the location of the network resource, establishing a link between the current element (anchor) and the current document (link), and its direct relationship with the page is a link relationship. When it is loaded, the page itself will not stop the loading of other content. It is used to establish a link between the current element and the document. (Commonly used: link, a)

Example of URL Encoding

charactersURL Encoding
%80
£%A3
©%A9
®%AE
À%C0
Á%C1
Â%C2
Ã%C3
Ä%C4
Å%C5

Para uma referência completa de codificação URL, acesse nosso Manual de Referência de Codificação URL.