Top Banner
OWL Jan-24-14 How Websites Work
24

OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

Dec 31, 2015

Download

Documents

Brice Baldwin
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

OWL Jan-24-14How Websites Work

Page 2: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

“The Internet” vs. “The Web”?

Page 3: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

The Internet

A network of computer networks linked with a broad array of technology, which facilitate

the transmission of data and exchange. Information travels via protocols (digital

rules)

Page 4: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

The Web

The way of accessing all this information via the Internet using HTTP (Hypertext Transfer

Protocol) protocol and tools such as browsers

Hence “hyperlinks”

Page 5: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

Client Side vs. Server Side

Front End vs. Back End

Page 6: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

Front End Client Side• Very DesignE• What the user sees

and interacts with in the browser

• Runs “The Client Side”• Aka, displays things

• Application that runs on a user’s computer (the client being a browser, but not always)

Front End == Client Side

Page 7: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

Back End Server Side• Crunching Data• Runs in the “back

end” (unseen by the user) on either the computer or on the server.

• Runs on a Server• Explicitly does not run

on the users computer (so somewhere else)

Back End == Server Side

Page 8: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

So, Quick Review:

Page 9: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

The DOM (Document Object Model)•Programming interface for HTML and XML•Defines structure of document•Defines how document can be

manipulated

•Document == Web page•Web page =>> DOM

Page 10: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?
Page 11: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

Browsers

Page 12: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?
Page 13: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

Browsers

•Each browser renders differently

•Browser Compatibility is important!•You will also hate it.

Page 14: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

Webkit (Chrome & Safari)

Page 15: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

Gecko (Firefox)

Page 16: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

How URLs WorkThe style of this header terrifies me…

Page 17: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

Enter in a URL

1. Browser looks up IP Address for Domain Name

(IP = Internet Protocol address)(DNS = Domain Name System)Will also reference cache/stored data

Page 18: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

Enter in a URL

2. Browser sends HTTP request to serverAlso contains cookies browser has for domain

Page 19: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

Enter in a URL

3. Server Handles/GETs the request

Page 20: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

Enter in a URL

4. Server sends back an HTTP response

Page 21: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

Enter in a URL

5. Browser begins rendering HTML

Page 22: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

Enter in a URL

6. Browser sends requests for objects embedded in HTML

Page 23: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

Enter in a URL

7. Browser sends further asynchronous (AJAX) requests

Page 24: OWL Jan-24-14 How Websites Work. “The Internet” vs. “The Web”?

And Done!(ish)