The Internet A Global Network
The internet is like a massive postal system where computers send messages to each other using a special language called HTTP, which stands for HyperText Transfer Protocol.
The Journey of a Web Page
-
You type a URL, for example google.com
-
DNS Lookup: Your computer asks “Where is google.com?”
-
Server Response: The server sends back the website files
-
Browser Rendering: Your browser displays the website
Key Internet Concepts
URLs (Uniform Resource Locators)
https://www.example.com/path/to/page?query=value#section
Protocol – https
Domain Name – www.example.com
Path – /path/to/
Query Parameters – page?query
and Fragment – value#section
HTTP Methods
-
GET: Retrieve data, like loading a webpage
-
POST: Send data, like submitting a form
-
PUT: Update data
-
DELETE: Remove data
Status Codes
-
200: Success
-
404: Page not found
-
500: Server error
Client-Server Architecture
Your Computer ↔ Internet ↔ Web Server
(Client)————————————-(Server)
Client: Your browser such as Chrome, Firefox, or Safari
Server: The computer that hosts the website
Request: What you ask for
Response: What the server sends back