Let’s Review: HTML
What is a file?
Special document on computer that only has letters.
What makes a file a web page?
If the file ends in
What is a tag?
How do you surround text with a tag?
<tag> Surrounded text </tag>
What is the Difference?
What tag surrounds the entire web page?
<html> The whole web page goes here... </html>
What is a computer tree?
Like a tree on its side…
More like a tournament bracket…
What tag follows
<html> <head> Anything here is not shown! </head> <body> Stuff that is shown goes here! </body> </html>
Why do we have
Magic stuff goes there…
Do all tags surround text?
<img src="folderA/folderB/some-picture.png" />
Client and Servers
On the web, you are either a client or a server.
What does that mean?
Once upon a time…
Each computer was an island
Code was shared physically:
- Hand friend a “floppy disk”
- Type code printed in a magazine
Computer would “call” another computer
- Very slow
- Had to know the computer’s number
- Computer had to be on
Do Computers Talk Directly?
Computers do connect to each other:
But they don’t connect directly.
Just seems that way.
Web Invented in 1993
Computers are either:
Every file on a server has an address.
Internet Address: URL
Every “address” has five parts:
For something like Snapchat:
- First photo is uploaded to server
- Server stores photo
- Client asks for any files
- Server gives it the photo