this is cs50 · 2020. 11. 1. · hello, title hello, body

74
This is CS50

Upload: others

Post on 18-Jan-2021

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

This is CS50

Page 2: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

internet

Page 3: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body
Page 4: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

TCP/IP

Page 5: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

clkr.com

Page 6: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

IP

Page 7: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

DNS

Page 8: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

TCP

Page 9: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

80 HTTP

443 HTTPS

...

Page 12: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

HTTP

Page 13: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

GET

POST

...

Page 14: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

https://www.example.com/index.html

Page 15: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

https://www.example.com/index.html

Page 16: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

https://www.example.com/index.html

Page 17: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

https://www.example.com/index.html

Page 18: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

https://www.example.com/index.html

Page 19: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

https://www.example.com/index.html

Page 20: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

https://www.example.com/index.html

Page 21: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

HTTP

Page 22: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

GET / HTTP/1.1

Host: www.example.com

...

Page 23: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

GET /index.html HTTP/1.1

Host: www.example.com

...

Page 24: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

HTTP/1.1 200 OK

Content-Type: text/html

...

Page 25: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

GET / HTTP/1.1

Host: www.harvard.edu

...

Page 26: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

HTTP/1.1 301 Moved Permanently

Location: https://www.harvard.edu/

Page 27: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

HTTP/1.1 404 Not Found

Content-Type: text/html

...

Page 28: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

200 OK

301 Moved Permanently

302 Found

304 Not Modified

307 Temporary Redirect

401 Unauthorized

403 Forbidden

404 Not Found

418 I'm a Teapot

500 Internal Server Error

503 Service Unavailable

...

Page 29: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

GET / HTTP/1.1

Host: safetyschool.org

...

Page 30: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

GET / HTTP/1.1

Host: www.harvardsucks.org

...

Page 31: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

GET /search?q=cats HTTP/1.1

Host: www.google.com

...

Page 32: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

HTML

Page 33: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

tags

attributes

Page 34: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

Page 35: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

Page 36: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

Page 37: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

Page 38: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

Page 39: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

Page 40: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

Page 41: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

Page 42: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

Page 43: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

Page 44: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

Page 45: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html> hello, title

hello, body

Page 46: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

CSS

Page 47: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

properties

Page 48: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

type selectors

class selectors

ID selectors

...

Page 49: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

Page 50: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<style>

</style>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

Page 51: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<link href="styles.css" rel="stylesheet">

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

Page 52: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

JavaScript

Page 53: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

let counter = 0;

Page 54: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

let counter = 0;

Page 55: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

counter = counter + 1;

Page 56: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

counter = counter + 1;

Page 57: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

counter += 1;

Page 58: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

counter++;

Page 59: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

if (x < y){ }

Page 60: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

if (x < y){ }

Page 61: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

if (x < y){ }else{ }

Page 62: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

if (x < y){ }else{ }

Page 63: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

if (x < y){ }else if (x > y){ }else{ }

Page 64: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

if (x < y){ }else if (x > y){ }else{ }

Page 65: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

while (true){ }

Page 66: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

while (true){ }

Page 67: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

for (let i = 0; i < 3; i++){ }

Page 68: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

hello, title

hello, body

Page 69: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

Page 70: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<script>

</script>

<title>

hello, title

</title>

</head>

<body>

hello, body

</body>

</html>

Page 71: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

<script>

</script>

</body>

</html>

Page 72: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

<!DOCTYPE html>

<html lang="en">

<head>

<title>

hello, title

</title>

</head>

<body>

hello, body

<script src="scripts.js"></script>

</body>

</html>

Page 73: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

blur

change

click

drag

focus

keyup

load

mousedown

mouseover

mouseup

submit

touchmove

unload

...

Page 74: This is CS50 · 2020. 11. 1. ·     hello, title    hello, body

This is CS50