Join Morten Rand-Hendriksen for an in-depth discussion in this video From URL to website, part of Web Programming Foundations.
- Let's start at the very beginning. You open your web browser, type in a URL in the address bar and hit Return. What happens? With any luck, the website loads in the browser and you can read, view or listen to the content you were looking for. But what really happens? Let's start with that address bar and what you put in it. Whether you type out a web address yourself or click on a bookmark or follow a link, the address bar is filled with a URL, or Universal Resource Locator.
This URL is quite literally a locator following a universal standard that points at a specific resource somewhere on the web, and that resource is the document you're trying to access and all it's associated assets, and that somewhere is a server connected to the internet somewhere in the world whose IP address is mapped to the domain you used in a DNS, or Domain Name Server. Here's how all of that works.
A URL is entered in the address bar. When the user hits Return or touches the button on their phone or something else, the browser sends a get request to this URL, which asks the server on the other side to send back all the data it has. The URL is sent to a domain name server, known more commonly as DNS. The DNS figures out which IP address the domain is pointing at, and passes the request to the server on that IP address.
- From URL to website
- Structure of a web document
- Dual-purpose code
- Browsers and editors