HTML/CSS Basics Forrest Huang CS160 Summer 2019 Week 1 // - - PowerPoint PPT Presentation

html css basics forrest huang cs160 summer 2019 week 1 he
SMART_READER_LITE
LIVE PREVIEW

HTML/CSS Basics Forrest Huang CS160 Summer 2019 Week 1 // - - PowerPoint PPT Presentation

HTML/CSS Basics Forrest Huang CS160 Summer 2019 Week 1 // He/His/Him // 2nd Year Ph.D. HCI + ML Teach Computers to Draw // Office Hours: 0900-1100 Tu 310 Jacobs ( ) // Sections and Logistics // Web Programming/Languages // HTML 101 for


slide-1
SLIDE 1

HTML/CSS Basics Forrest Huang CS160 Summer 2019 Week 1

slide-2
SLIDE 2
slide-3
SLIDE 3

// He/His/Him // 2nd Year Ph.D. HCI + ML Teach Computers to Draw // Office Hours: 0900-1100 Tu 310 Jacobs ( )

slide-4
SLIDE 4

for today

// Sections and Logistics // Web Programming/Languages // HTML 101 // CSS 101 // Chrome Dev Tools // Survey

slide-5
SLIDE 5

It is a place to learn and experience practical tools which will help you in your projects, and help you reinforce and build upon ideas covered in classes. First 2 weeks: Fundamentals

slide-6
SLIDE 6

Summer classes require a lot of work Many assignment in this class don’t have “right” answers

slide-7
SLIDE 7
slide-8
SLIDE 8

feel free to stay, but please

slide-9
SLIDE 9

If you finish an exercise early, feel free to help others

slide-10
SLIDE 10
slide-11
SLIDE 11
slide-12
SLIDE 12
slide-13
SLIDE 13
slide-14
SLIDE 14

Focused on formatting and presenting front-end UI-elements Turing-Complete! https://tinyurl.com/rule110

slide-15
SLIDE 15
slide-16
SLIDE 16

Try and get as close to a static version of https://www.youtube.com

slide-17
SLIDE 17

<!DOCTYPE html> <html> <head> <title>Page Title</title> <!-- Imports, like CSS --> </head> <body> <!-- Visible Content --> <p>My first paragraph.</p> </body> </html>

slide-18
SLIDE 18

<!DOCTYPE html> <html> <head> <title>Page Title</title> <!-- Imports, like CSS --> </head> <body> <!-- Visible Content --> <p>My first paragraph.</p> </body> </html>

slide-19
SLIDE 19

<!DOCTYPE html> <html> <head> <title>Page Title</title> <!-- Imports, like CSS --> </head> <body> <!-- Visible Content --> <p>My first paragraph.</p> </body> </html>

slide-20
SLIDE 20

<!DOCTYPE html> <html> <head> <title>Page Title</title> <!-- Imports, like CSS --> </head> <body> <!-- Visible Content --> <p>My first paragraph.</p> </body> </html>

slide-21
SLIDE 21

<!DOCTYPE html> <html> <head> <title>Page Title</title> <!-- Imports, like CSS --> </head> <body> <!-- Visible Content --> <p>My first paragraph.</p> </body> </html>

slide-22
SLIDE 22

https://tinyurl.com/cs160-sum-html

slide-23
SLIDE 23

// HTML tags start with <> and end with < /> // HTML tags specify the type (p, h1) and optionally attributes (href = “ ”) // divs and spans are the two main types of containers // Whitespace is (mostly) ignored

slide-24
SLIDE 24

// Whitespace <br> - Linebreak &nbsp; - Non-breaking whitespace

slide-25
SLIDE 25

// Open https://tinyurl.com/cs160-sum-html, Create a fork // Build the following start to a fun-fact page, for your neighbors! (in pairs)

slide-26
SLIDE 26
slide-27
SLIDE 27

<li id=”rutabaga” style=”color: green;”>I love rutabagas.</li>

slide-28
SLIDE 28
slide-29
SLIDE 29

ID: Value is unique to that specific element on that page (also used for relative linking) Class: Value can be shared with elements

<li id=”rutabaga” class=”fun-fact”>I love rutabagas.</li> <li id=”roger” class=”fun-fact”>My favourite tennis player is Roger Federer.</li>

slide-30
SLIDE 30

ID: Value is unique to that specific element on that page (also used for relative linking) Class: Value can be shared with elements

<li id=”rutabaga” class=”fun-fact”>I love rutabagas.</li> <li id=”roger” class=”fun-fact”>My favourite tennis player is Roger Federer.</li>

slide-31
SLIDE 31

ID: Value is unique to that specific element on that page (also used for relative linking) Class: Value can be shared with elements

<li id=”rutabaga” class=”fun-fact”>I love rutabagas.</li> <li id=”roger” class=”fun-fact”>My favourite tennis player is Roger Federer.</li>

slide-32
SLIDE 32

HTML:

<head> <link rel="stylesheet" type="text/css" href="mystyle.css"/> </head>

mystyle.css:

.fun-fact { color: green; }

slide-33
SLIDE 33

<!DOCTYPE html> <html> <head> <title>Page Title</title> <!-- Imports, like CSS --> </head> <body> <!-- Visible Content --> <p>My first paragraph.</p> </body> </html>

slide-34
SLIDE 34

<!DOCTYPE html> <html> <head> <title>Page Title</title> <link rel="stylesheet" type="text/css" href="mystyle.css"/> </head> <body> <!-- Visible Content --> <p>My first paragraph.</p> </body> </html>

slide-35
SLIDE 35

.class: .fun-fact #id: #rutabaga Element: span First Nested Second: ul li

.fun-fact { color: green; }

slide-36
SLIDE 36

https://tinyurl.com/cs160-sum-css

slide-37
SLIDE 37
slide-38
SLIDE 38
slide-39
SLIDE 39

https://tinyurl.com/chromedt-demo

slide-40
SLIDE 40

For more detailed instructions on how you could make a personal website: https://tinyurl.com/personalw-medium

slide-41
SLIDE 41

for today

// Sections and Logistics // Web Programming/Languages // HTML 101 // CSS 101 // Chrome Dev Tools // Survey

slide-42
SLIDE 42
slide-43
SLIDE 43

https://tinyurl.com/cs160-su19-sec1

slide-44
SLIDE 44

rutabaga

slide-45
SLIDE 45