60
Design & Presentation Designing for the web

Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Design & Presentation

Designing for the web

Page 2: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Review

HTML/CSS

Page 3: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 4: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with 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, and links. (For human eyes!)

Page 5: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

HTML: Basic structure

• Elements• Tags• Attributes

Page 6: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Element

Page 7: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Tag

Page 8: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Attribute

Page 9: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Elements nest inside one another

Page 10: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 11: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 12: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

How to add an image

Page 13: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 14: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Image attributes• src

• alt

• width

• height

Page 15: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 16: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Cascading Style Sheets

Page 17: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Styles can be inline

Page 18: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 19: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

This text is pink.

Page 20: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Styles can be written in theHTML header

Page 21: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 22: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

This text is also pink.

Page 23: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Or in an external stylesheet

Page 24: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 25: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

This text is still pink.

Page 26: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Selectors:• id

• class

• element: div, a, span

• element state: a:active, a:hover, a:visited

Page 27: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 28: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 29: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

The basics:

What you can control with CSS

• text styles

• "the box model"

• positioning & display

• and more!

Page 30: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Text styles• color

• font-family

• font-size

• font-weight

• text-align

• text-decoration

Page 31: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

"The box model"• width

• height

• border

• margin

• padding

Page 32: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 33: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Positioning & display• position

• display

• �oat

Page 35: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Let's talk about …

Head & bodydetails

Page 36: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Header tags

Page 37: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

This is heading 1This is heading 2

This is heading 3This is heading 4

This is heading 5

This is heading 6

Page 38: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 39: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 40: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Tip

Whitespace isyour friend!

Page 41: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

This doesn't look so greatFlop over scratch the box put toy mouse infood bowl run out of litter box at full speedstick butt in face, or attack dog, run awayand pretend to be victim purr while eating.

Play time hiss at vacuum cleaner white catsleeps on a black shirt and eat grass, throwit back up.

Page 42: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 43: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Much better!Flop over scratch the box put toy mouse infood bowl run out of litter box at full speedstick butt in face, or attack dog, run awayand pretend to be victim purr while eating.

Play time hiss atvacuum cleaner whitecat sleeps on a blackshirt and eat grass,throw it back up.Immediately regretfalling into bathtubunder the bed lay on

arms while you're using the keyboard andlick the other cats sun bathe. Kitty power!

Page 44: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Float a pullquote too

"Meow meowmeow (I am apullquote)"

Flop over scratch the box put toy mouse infood bowl run out of litter box at full speedstick butt in face, or attack dog, run awayand pretend to be victim purr while eating.

Play time hiss atvacuum cleaner whitecat sleeps on a blackshirt and eat grass,throw it back up.

Immediately regret falling into bathtubunder the bed lay on arms while you'reusing the keyboard and lick the other catssun bathe. Kitty power!

Page 45: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

BREAK!

Page 46: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 47: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Via Fast Company

Page 48: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Tip

Use percent,not pixels

Page 49: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 50: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Via Fast Company

Page 51: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Tip

Max-width is here to help

Page 52: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 53: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Via Fast Company

Page 54: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Tip

Breakpoints forbetter layouts

Page 55: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Via Fast Company

Page 56: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 57: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •
Page 59: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

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

Page 60: Design & Presentation Designing for the web · HTML/CSS. The head is where you put information about your HTML le, like its title. ... The basics: What you can control with CSS •

Let's open ourinspector!