The format of the resource name depends entirely on the protocol used, but for many protocols, including HTTP, the resource name contains one or more of the following components:. For many protocols, the host name and the filename are required, while the port number and reference are optional. For example, the resource name for an HTTP URL must specify a server on the network Host Name and the path to the document on that machine Filename ; it also can specify a port number and a reference.
All rights reserved. It let's the browser to know which protocol it's going to use to access the information specified in the domain. Next, "www" stands for World Wide Web and is used to distinguish the content. This portion of the URL is not required and many times can be left out. This portion of the address can also be substituted for an important sub page known as a subdomain.
Next, "computerhope. The last portion of the domain is known as the domain suffix, or TLD. It is used to identify the type or location of the website. For example, ". There are several domain suffixes available. To get a domain, you would register the name through a domain registrar. Next, "jargon" and "u" are the directories where the web page is on the server. In this example, the web page is two directories deep.
Finally, url. The trailing. Other common file extensions on the Internet include. Each of these file extensions performs a different function, like all the different types of files on your computer.
A URL is located at the top of the browser window in the address bar or omnibox depending on your browser window. On desktop computers and laptop , unless your browser is being displayed in fullscreen the URL is always visible.
In most smartphone and tablet browsers, the address bar containing the URL will disappear as you scroll down and only show the domain when visible. When the address bar is not visible, scroll up the page. If only the domain is shown, tapping on the address bar shows the full address. Most video sharing pages, such as YouTube , also have sharing links below the video or in the video. The most important parts are highlighted on the URL below details are provided in the following sections :.
Note: You might think of a URL like a regular postal mail address: the scheme represents the postal service you want to use, the domain name is the city or town, and the port is like the zip code; the path represents the building where your mail should be delivered; the parameters represent extra information such as the number of the apartment in the building; and, finally, the anchor represents the actual person to whom you've addressed your mail.
Note: There are some extra parts and some extra rules regarding URLs, but they are not relevant for regular users or Web developers. Don't worry about this, you don't need to know them to build and use fully functional URLs. The first part of the URL is the scheme , which indicates the protocol that the browser must use to request the resouce a protocol is a set method for exchanging or transferring data around a computer network.
Addressing web pages requires one of these two, but browsers also know how to handle other schemes such as mailto: to open a mail client , so don't be surprised if you see other protocols. If present the authority includes both the domain e. One example of a URL that doesn't use an authority is the mail client mailto:foobar. It contains a scheme but doesn't use an authority component. Therefore, the colon is not followed by two slashes and only acts as a delimiter between the scheme and mail address.
In the early days of the Web, a path like this represented a physical file location on the Web server. Nowadays, it is mostly an abstraction handled by Web servers without any physical reality. The Web server can use those parameters to do extra stuff before returning the resource. Each Web server has its own rules regarding parameters, and the only reliable way to know if a specific Web server is handling parameters is by asking the Web server owner.
SomewhereInTheDocument is an anchor to another part of the resource itself. An anchor represents a sort of "bookmark" inside the resource, giving the browser the directions to show the content located at that "bookmarked" spot.
On an HTML document, for example, the browser will scroll to the point where the anchor is defined; on a video or audio document, the browser will try to go to the time the anchor represents. Any URL can be typed right inside the browser's address bar to get to the resource behind it.
0コメント