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

Introduction de base HTML

Média HTML

Manuel de référence HTML

HTML5 Introduction de base

HTML5 API

HTML5 Média

URL HTML

URL : abréviation de Uniform Resource Locators (Uniform Resource Locators), un navigateur Web demande une page au serveur Web via l'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 - Uniform Resource Locators (Uniform Resource Locators)

Une URL est une adresse de page Web.

Une URL peut être composée de lettres, comme "fr.oldtoolbag.com" ou adresse IP (IP) : 192.168.1.10.La plupart des gens accèdent aux sites Web en utilisant le nom de domaine du site Web, car Les noms sont plus faciles à retenir que les nombres.

URL - Uniform Resource Locator

Un navigateur Web demande une page au serveur Web via l'URL.

Lorsque vous cliquez sur un lien dans une page HTML, l'étiquette <a> pointe vers une adresse sur le World Wide Web.

Un Uniform Resource Locator (URL) utilisé pour localiser des documents sur le World Wide Web.

Exemple d'adresse de page Web:https://fr.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, indicating the introduction of a file, the purpose of which is to load the file into the html page. When the browser parses it, it will pause other content and load the src content first, and it must wait until the src content is loaded before executing the following content. (Commonly used: img, script, iframe)

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

URL encoding example

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

Pour une référence complète de l'encodage URL, veuillez visiter notre Manuel de référence d'encodage URL