From a URL to a page
What happens when you type a URL and press Enter: DNS, a request, a response with HTML, CSS and JavaScript, and the browser building the page.
Transcript
It starts when you type a URL. A URL is the address of a page, like https, example dot com, slash cats.
It has three parts. H T T P S is the protocol, the way of talking. The domain name says which website. The path says which page.
Step one: the browser asks DNS to turn the domain name into an IP address.
Step two: the browser sends a request to that server, asking for the page called slash cats.
Step three: the server sends back a response, with the files for the page: H T M L, C S S and JavaScript.
Step four: the browser builds the page. H T M L is the structure, C S S is the style, and JavaScript makes it move.
Remember: a URL, then DNS, a request, a response, and the browser shows the page.
More in this series
1:355Clients and servers
The client asks with a request, the server answers with a response. Like a customer and a kitchen, including what a 404 means.
1:296IP addresses and DNS
Every device has an IP address like a house number, websites have domain names, and DNS is the phone book that turns a name into a number.