web programming - cs50web programming with python and javascript web programming html and css html...

47
Web Programming with Python and JavaScript

Upload: others

Post on 07-Jul-2020

38 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Web Programming with Python and JavaScript

Page 2: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Web Programming

Page 3: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

HTML and CSS

HTML

Page 4: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Git

Page 5: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Python

Page 6: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Django

Page 7: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

SQL, Models, and Migrations

Page 8: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

JavaScript

Page 9: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

User Interfaces

Page 10: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Testing and CI/CD

Page 11: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Scalability and Security

Server

Load Balancer

Server Server

Page 12: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

HTML and CSS

Page 13: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

HTML

Page 14: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

<!DOCTYPE html> <html lang="en"> <head> <title>Hello!</title> </head> <body> Hello, world! </body> </html>

Page 15: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

<!DOCTYPE html> <html lang="en"> <head> <title>Hello!</title> </head> <body> Hello, world! </body> </html>

Page 16: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

<!DOCTYPE html> <html lang="en"> <head> <title>Hello!</title> </head> <body> Hello, world! </body> </html>

Page 17: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

<!DOCTYPE html> <html lang="en"> <head> <title>Hello!</title> </head> <body> Hello, world! </body> </html>

Page 18: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

<!DOCTYPE html> <html lang="en"> <head> <title>Hello!</title> </head> <body> Hello, world! </body> </html>

Page 19: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

<!DOCTYPE html> <html lang="en"> <head> <title>Hello!</title> </head> <body> Hello, world! </body> </html>

Page 20: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

<!DOCTYPE html> <html lang="en"> <head> <title>Hello!</title> </head> <body> Hello, world! </body> </html>

Page 21: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

<!DOCTYPE html> <html lang="en"> <head> <title>Hello!</title> </head> <body> Hello, world! </body> </html>

Page 22: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Document Object Model

<!DOCTYPE html> <html lang="en"> <head> <title>Hello!</title> </head> <body> Hello, world! </body> </html>

html

head body

title Hello, world!

Hello!

Page 23: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Common HTML Tags

•<h1>, <h2>, ..., <h6> •<ol>, <ul> •<img> •<a> •<table> •<form> •...

Page 24: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

CSS

Page 25: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Common CSS Properties

• color

• text-align

• width, height

• margin, padding

• font-family, font-size, font-weight

• border

• ...

Page 26: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Identifying Elements

• div

• span

• id

• class

Page 27: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Specificity

1. inline

2. id

3. class

4. type

Page 28: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Specificity

<div id="foo"> Hello! </div>

Hello!div { color: blue; }

Page 29: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Specificity

<div id="foo"> Hello! </div>

div { color: blue; }

#foo { color: red; }

Hello!

Page 30: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Specificity

<div id="foo"> Hello! </div>

#foo { color: red; }

div { color: blue; }

Hello!

Page 31: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

CSS Selectors

a, b Multiple Element Selector

a b Descendant Selector

a > b Child Selector

a + b Adjacent Sibling Selector

[a=b] Attribute Selector

a:b Pseudoclass Selector

a::b Pseudoelement Selector

Page 32: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Responsive Design

Page 33: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Responsive Design

• viewport

• Media Queries

• Flexbox

• Grids

Page 34: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

<meta name="viewport" content="width=device-width, initial-scale=1.0">

Page 35: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Viewport

a

Page 36: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Viewport

a

Page 37: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Media Queries

• Media Types: print, screen, ...

• Media Features: height, width, orientation, ...

Page 38: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Flexbox

1 2 3 4 5 61 2 3 4 5 6

Page 39: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Flexbox

1 2 3 4 5 6

1 2 3 4 5 6

Page 40: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Flexbox

1 2 3 4 5 61 2 3 4 5 6

Page 41: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Flexbox

1 2 3 4 5 61 2 3 4 5 6

Page 42: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Flexbox

1 2 3 4 5 61 2 3 4 5 6

Page 43: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Flexbox

1 2 3 4 5 61 2 3

4 5 6

Page 44: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Bootstrap

Page 45: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing
Page 46: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Sass

Page 47: Web Programming - CS50Web Programming with Python and JavaScript Web Programming HTML and CSS HTML Git Python Django SQL, Models, and Migrations JavaScript User Interfaces Testing

Web Programming with Python and JavaScript