The Internet: HTTP & HTML

883.28k views1137 WordsCopy TextShare
Code.org
Tumblr founder David Karp and Xbox program manager Jasmine Lawrence give a detailed description of h...
Video Transcript:
[music] I'm Jasmine Lawrence and I'm a program manger on the XBox One engineering team. [music] One of our biggest features is called XBox Live. It's an online service that connects gamers from all around the world, and we rely on the internet to make that happen.
This is no easy task and there are a lot of things happening behind the scenes. [swish] The internet is totally changing how people interact and connect. But how does it work?
How do the computers all across the world actually communicate with each other? [music] Let's look at web browsing. First, you open a web browser.
It's the app you use to access the web pages. Next, you type in the web address, or URL, which stands for Uniform Resource Locator of the website you want to visit like Tumblr. com.
[synth music] [ping pong sfx] Hi, I'm David Karp, the founder of Tumblr and we're here today to talk about how those web browsers we use everyday actually work. So you've probably wondered what actually happens when you type an address into your web browser and then hit enter. And it really is about as crazy as you can imagine.
So in that moment your computer starts talking to another computer, called a server, that's usually thousands of miles away. And in milliseconds your computer asks that server for a website, and that server starts to talk back to your computer in a language called HTTP. And HTTP stands for HyperText Transfer Protocol.
You can kind of think of it as the language that one computer uses to ask another computer for a document. And it's actually really pretty straightforward. If you were to intercept the conversation between your computer and a web server on the internet, it's mainly made up of something called "GET" requests.
Those are really very simply the word GET and the name of the document that you're requesting. So if you try to log into Tumblr and load our login page, all you're doing is sending a GET request to Tumblr's server that says GET /login. And that tells Tumblr's server that you want all of the HTML code for the Tumblr login page.
So HTML stands for Hyper Text Markup Language and you can think of that as the language you use to tell a web browser how to make a page look. If you think about something like Wikipedia, which is really just a big simple document and HTML is the language that you use to make that title big and bold, to make the font the right font, to link certain text to certain other pages, to make some text bold, to make some to make some text bold, to make some text italic, to put an image in the middle of the page, to align the image to the right, to align the image to the left. The text of a web page is included directly in the HTML, but other parts, images or videos, are separate files with their own URLs that need to be requested.
The browser sends separate HTTP requests for each of these and displays them as they arrive. [pop, pop] If a web page has a lot of different images, each of them causes a separate HTTP request and the page loads slower. [pops] Now sometimes when you browse the web, you're not just requesting pages with GET requests.
Sometimes you send information like when you fill out a form or type a search query. Your browser sends this information in plain text to the web server using an HTTP POST request. Let's say you log in to Tumblr.
Well the first thing you do is you make a POST request, that is a POST to Tumblr's login page that has some data attached to it. It has your email address, it has your password. That goes to Tumblr's server.
Tumblr's server figures out that okay, you're David. It sends a web page back to your browser that says, Success! Logged in as David.
But along with that web page, it also attaches a little bit of invisible cookie data that your browser sees and knows to save. And it's really important because it's really the only way that a website can remember who you are. All that cookie data really is, is an ID card for Tumblr.
It's a number that identifies you as David. And your web browser holds on to that number and the next time you refresh Tumblr, the next time you go to Tumblr. com, your web browser knows to automatically attach that ID number with the request that it sends over to Tumblr's servers.
So now Tumblr's servers sees the request coming from your browser, sees the ID number, and knows "Ok, this is a request from David. " [music] Now, the internet is completely open. All of its connections are shared and information is sent in plain text.
This makes it possible for hackers to snoop on any personal information that you send over the internet. But safe websites prevent this, by asking your web browser to communicate on a secure channel using something called Secure Sockets Layer and its successor Transport Layer Security. You can think of SSL and TLS as a layer of security wrapped around your communications to protect them from snooping or tampering.
SSL and TLS are active when you see the little lock that appears in your browser address bar, next to the HTTPS. The HTTPS protocols ensure that your HTTP requests are secure and protected. When a website asks your browser to engage in a secure connection, it first provides a digital certificate.
an official ID card proving that it's the website it claims to be. Digital certificates are published by certificate authorities, which are trusted entities that verify the identities of websites and issue certificates for them. Just like a government can issue IDs or passports.
Now if a website tries to start a secure connection without a properly issued digital certificate, your browser will warn you. That's the basics of web browsing! The part of the internet we see day to day.
To summarize, HTTP and DNS manage the sending and receiving of HTML, media files, or anything on the web. What makes this possible under the hood are TCP/IP and router networks that break down and transport information in small packets. Those packets themselves are made up of binary, sequences of 1s and 0s that are physically sent through electric wires, fiber optic cables, and wireless networks.
Fortunately, once you've learned how one layer of the internet works, you can rely on it without remembering all the details. And we can trust that all those layers will work together to successively deliver information at scale and with reliability.
Related Videos
The Internet: Encryption & Public Keys
6:40
The Internet: Encryption & Public Keys
Code.org
623,528 views
How The Internet Works? | What Is Internet? | Dr Binocs Show | Kids Learning Video | Peekaboo Kidz
6:30
How The Internet Works? | What Is Internet...
Peekaboo Kidz
1,984,915 views
The Internet: IP Addresses & DNS
6:45
The Internet: IP Addresses & DNS
Code.org
1,435,119 views
The Internet: Cybersecurity & Crime
5:02
The Internet: Cybersecurity & Crime
Code.org
643,818 views
How Computers Work: CPU, Memory, Input & Output
4:17
How Computers Work: CPU, Memory, Input & O...
Code.org
914,548 views
A 12-year-old app developer | Thomas Suarez | TED
4:41
A 12-year-old app developer | Thomas Suare...
TED
11,276,352 views
What's the Worst Thing You've Ever Done? | 100 Kids | HiHo Kids
5:12
What's the Worst Thing You've Ever Done? |...
HiHo Kids
8,435,651 views
Ben and Holly’s Little Kingdom | Miss Cookie's Nature Trail | Cartoon for Kids
59:46
Ben and Holly’s Little Kingdom | Miss Cook...
Ben and Holly’s Little Kingdom – Official Channel
26,175,362 views
Molly Wright: How Every Child Can Thrive by Five | TED
7:43
Molly Wright: How Every Child Can Thrive b...
TED
7,315,879 views
The Toy Factory 🧸 Peppa Pig Tales 🐽 Peppa and Friends Full Episodes |
30:25
The Toy Factory 🧸 Peppa Pig Tales 🐽 Pepp...
Peppa and Friends
1,838,139 views
The Internet: Packets, Routing & Reliability
6:26
The Internet: Packets, Routing & Reliability
Code.org
989,217 views
Show and Tell Foreign Languages | Show and Tell | HiHo Kids
5:55
Show and Tell Foreign Languages | Show and...
HiHo Kids
20,635,803 views
What if our Hands had Artificial Intelligence (AI)? + more videos | #aumsum #kids #children #whatif
30:39
What if our Hands had Artificial Intellige...
AumSum's Jungle
2,138,543 views
Coding for Kids Explained | What is Coding | Why is Coding Important
3:31
Coding for Kids Explained | What is Coding...
CodeMonkey - Coding Games for Kids
576,836 views
The Internet: Wires, Cables & Wifi
6:42
The Internet: Wires, Cables & Wifi
Code.org
1,137,039 views
Brain Matters documentary | Early Childhood Development
59:52
Brain Matters documentary | Early Childhoo...
Brain Matters
1,443,911 views
The Marble Run WORLD RECORD 🥇 | Peppa Pig Official Full Episodes |
31:11
The Marble Run WORLD RECORD 🥇 | Peppa Pig...
KidsFirst
3,002,674 views
How Computers Work: What Makes a Computer, a Computer?
5:10
How Computers Work: What Makes a Computer,...
Code.org
1,488,050 views
@Numberblocks - Who is the Toughest Block? | Maths Challenge | Learn to Count
6:03
@Numberblocks - Who is the Toughest Block?...
Numberblocks
84,556,882 views
What is the internet? | Wonder Kids | Scitech WA
6:36
What is the internet? | Wonder Kids | Scit...
Scitech WA
1,253 views
Copyright © 2024. Made with ♥ in London by YTScribe.com