Session 2: How Websites Work
A website isn't magic - it's just files stored on a computer called a server that's always connected to the internet.
When you visit google.com, Google's server sends all these files to your browser, which displays them as a webpage!
A URL (Uniform Resource Locator) is the web address you type in your browser.
https://www.google.com/search?q=puppies
A domain is the unique name of a website. Every domain has an extension called a TLD (Top-Level Domain).
You can buy a domain from a registrar like GoDaddy or Namecheap. Cost is usually $5-15/year. This reserves the name so no one else can use it!
A web browser is the application that displays websites. It takes HTML/CSS/JavaScript and turns them into what you see.
Key feature: All browsers can display the same website, but slightly differently depending on how they interpret HTML/CSS.
When you visit a website, something amazing happens in milliseconds:
HTML (HyperText Markup Language) is the code that structures a website. Don't worry - you don't need to code, just understand the concept!
HTML is like an outline. It defines:
Example: When you see a blue underlined link on a website, that's HTML saying "This is a clickable link to another page!"
Almost all interesting websites today are dynamic! They remember who you are, show personalized content, and respond to your actions.
Notice websites have "https://" not just "http://" - the "S" means Secure.
Never enter passwords or credit cards on HTTP websites! Only use websites with HTTPS, especially when entering sensitive information. Most browsers show a lock icon 🔒 next to HTTPS URLs.
If you want to create a website, you need to store it somewhere. Companies like Bluehost, Hostgator, and AWS provide web hosting.
When you visit YouTube.com, here's what happens:
All of this happens in 1-3 seconds!
Now you understand what happens when you visit a website!
Next Session: How Search Engines Work