Designing for the web Review HTML/CSS The head is where you put - - PowerPoint PPT Presentation

designing for the web
SMART_READER_LITE
LIVE PREVIEW

Designing for the web Review HTML/CSS The head is where you put - - PowerPoint PPT Presentation

Design & Presentation Designing for the web Review HTML/CSS The head is where you put information about your HTML le, like its title. (Stu that won't appear on the page.) The body is where you put your content, such as text, images,


slide-1
SLIDE 1

Design & Presentation

Designing for the web

slide-2
SLIDE 2

Review

HTML/CSS

slide-3
SLIDE 3
slide-4
SLIDE 4

The head is where you put information about your HTML le, like its title. (Stu that won't appear on the page.) The body is where you put your content, such as text, images, and links. (For human eyes!)

slide-5
SLIDE 5

HTML: Basic structure

  • Elements
  • Tags
  • Attributes
slide-6
SLIDE 6

Element

slide-7
SLIDE 7

Tag

slide-8
SLIDE 8

Attribute

slide-9
SLIDE 9

Elements nest inside

  • ne another
slide-10
SLIDE 10
slide-11
SLIDE 11
slide-12
SLIDE 12

How to add an image

slide-13
SLIDE 13
slide-14
SLIDE 14

Image attributes

  • src
  • alt
  • width
  • height
slide-15
SLIDE 15
slide-16
SLIDE 16

Cascading Style Sheets

slide-17
SLIDE 17

Styles can be inline

slide-18
SLIDE 18
slide-19
SLIDE 19

This text is pink.

slide-20
SLIDE 20

Styles can be written in the HTML header

slide-21
SLIDE 21
slide-22
SLIDE 22

This text is also pink.

slide-23
SLIDE 23

Or in an external stylesheet

slide-24
SLIDE 24
slide-25
SLIDE 25

This text is still pink.

slide-26
SLIDE 26

Selectors:

  • id
  • class
  • element: div, a, span
  • element state: a:active, a:hover, a:visited
slide-27
SLIDE 27
slide-28
SLIDE 28
slide-29
SLIDE 29

The basics:

What you can control with CSS

  • text styles
  • "the box model"
  • positioning & display
  • and more!
slide-30
SLIDE 30

Text styles

  • color
  • font-family
  • font-size
  • font-weight
  • text-align
  • text-decoration
slide-31
SLIDE 31

"The box model"

  • width
  • height
  • border
  • margin
  • padding
slide-32
SLIDE 32
slide-33
SLIDE 33

Positioning & display

  • position
  • display
  • oat
slide-34
SLIDE 34

Other

  • list-style-type
  • cursor
  • border radius
  • & much more!
slide-35
SLIDE 35

Let's talk about …

Head & body details

slide-36
SLIDE 36

Header tags

slide-37
SLIDE 37

This is heading 1

This is heading 2

This is heading 3

This is heading 4

This is heading 5

This is heading 6

slide-38
SLIDE 38
slide-39
SLIDE 39
slide-40
SLIDE 40

Tip

Whitespace is your friend!

slide-41
SLIDE 41

This doesn't look so great

Flop over scratch the box put toy mouse in food bowl run out of litter box at full speed stick butt in face, or attack dog, run away and pretend to be victim purr while eating. Play time hiss at vacuum cleaner white cat sleeps on a black shirt and eat grass, throw it back up.

slide-42
SLIDE 42
slide-43
SLIDE 43

Much better!

Flop over scratch the box put toy mouse in food bowl run out of litter box at full speed stick butt in face, or attack dog, run away and pretend to be victim purr while eating. Play time hiss at vacuum cleaner white cat sleeps on a black shirt and eat grass, throw it back up. Immediately regret falling into bathtub under the bed lay on arms while you're using the keyboard and lick the other cats sun bathe. Kitty power!

slide-44
SLIDE 44

Float a pullquote too

"Meow meow meow (I am a pullquote)"

Flop over scratch the box put toy mouse in food bowl run out of litter box at full speed stick butt in face, or attack dog, run away and pretend to be victim purr while eating. Play time hiss at vacuum cleaner white cat sleeps on a black shirt and eat grass, throw it back up. Immediately regret falling into bathtub under the bed lay on arms while you're using the keyboard and lick the other cats sun bathe. Kitty power!

slide-45
SLIDE 45

BREAK!

slide-46
SLIDE 46
slide-47
SLIDE 47

Via Fast Company

slide-48
SLIDE 48

Tip

Use percent, not pixels

slide-49
SLIDE 49
slide-50
SLIDE 50

Via Fast Company

slide-51
SLIDE 51

Tip

Max-width is here to help

slide-52
SLIDE 52
slide-53
SLIDE 53

Via Fast Company

slide-54
SLIDE 54

Tip

Breakpoints for better layouts

slide-55
SLIDE 55

Via Fast Company

slide-56
SLIDE 56
slide-57
SLIDE 57
slide-58
SLIDE 58

Ex 1. Freeze frames Ex 2. Because Scott Walker Asked

slide-59
SLIDE 59

http://bit.ly/media-query-zip

slide-60
SLIDE 60

Let's open our inspector!