English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
URL: Abbreviation for Uniform Resource Locators (URL), through which web browsers request pages from web servers. 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 and other elements, and the path referenced by href is the place to be jumped to.
URL is a web page address.
URLs can be composed of letters, such as "www.oldtoolbag.com 192.168.1.10.Most people enter websites using the website domain name to access it because Names are easier to remember than numbers.
Web browsers request pages from web servers using URLs.
When you click on a link in an HTML page, the corresponding <a> tag points to an address on the World Wide Web.
A Uniform Resource Locator (URL) used to locate documents on the World Wide Web.
An example of a web page address:https://www.oldtoolbag.com/html/html-tutorial.htmlSyntax Rules:
scheme://host.domain:port/path/filename
Description:
scheme - Define the type of Internet service. The most common type is http
host - Define the domain host (the default host for http is www).
domain - Define the Internet domain, such as oldtoolbag.com
:port - Define the port number on the host (the default port number for http is 80)
path - Define the path on the server (if omitted, the document must be located in the root directory of the website).
filename - Define Document/Resource Name
The following are some URL schemes:
Scheme | access | for... |
http | Hypertext Transfer Protocol | with http:// The normal webpage with http: at the beginning. Not encrypted. |
https | Secure Hypertext Transfer Protocol | Secure Webpage, encrypts all information exchange. |
ftp | File Transfer Protocol | to download or upload files to a website. |
file | the files on your computer. |
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.
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 and other elements, and the path referenced by href is the place to be jumped to.
src is the abbreviation of source, which indicates 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 subsequent content. (Commonly used: img, script, iframe)
href is the abbreviation of Hypertext Reference, which indicates 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 relationship with the page is that of a link. When it is loaded, the page itself will not stop loading other content. It is used to establish a link between the current element and the document. (Commonly used: link, a)
Characters | URL Encoding |
€ | %80 |
£ | %A3 |
© | %A9 |
® | %AE |
À | %C0 |
Á | %C1 |
 | %C2 |
à | %C3 |
Ä | %C4 |
Å | %C5 |
For a complete URL encoding reference, please visit our URL Encoding Reference Manual.