Before we look at how we apply links, let's find out what URL's are, and how they work.
URL stands for Uniform Resource Locator, which is just a fancy name for an address. Each file on the Internet has a unique URL.
Let's take a look at an example URL:
There are three main parts to this web address: the scheme, host name and path.
The first part of a URL is the scheme. Here, it would be the "http://", which stands for Hypertext Transfer Protocol. This is used to access webpages. Another scheme you may have heard of is "https://", which is similar, but for secured connections.
Other schemes include "ftp://", which stands for File Transfer Protocol and is used to download files, while "mailto" is for sending emails.
The second part is the host name, "www.somesite.com". This directs the user to the server where the webpage is hosted.
Next you have your path. Most often this means a path to a specific folder. For example here, we have "file.html" that can be found inside the "folder" directory.
Note that the path does not necessarily have to be a filepath, but could be the developers implementing a pretty-URL. This is a more advanced concept that is handled by a back-end server framework.
Great! Now let's learn how to apply a URL on an HTML page.
Want your web site to display more quickly? This book presents 14 specific rules that will cut 25% to 50% off response time when users request a page. Author Steve Souders, in his job as Chief Performance Yahoo!, collected these best practices while optimizing some of the most-visited pages on the Web.$ Check price
This foam seat cushion relieves lowerback pain, numbness and pressure sores by promoting healthy weight distribution, posture and spine alignment. Furthermore, it reduces pressure on the tailbone and hip bones while sitting. Perfect for sitting on the computer desk for long periods of time.$ Check price