30
Presented by: Fawzia Essa Twitter: @fawziaessa

HTML5, CSS3 & Responsive Design

Embed Size (px)

DESCRIPTION

Be familiar with websites Designing tools

Citation preview

Page 1: HTML5, CSS3 & Responsive Design

Presented by: Fawzia Essa Twitter: @fawziaessa

Page 2: HTML5, CSS3 & Responsive Design

To be familiar with websites Designing tools

WHY ?

Page 3: HTML5, CSS3 & Responsive Design
Page 4: HTML5, CSS3 & Responsive Design

AGENDA:

1. HTML, CSS, & JavaScript.

2. CSS & CSS3 (Transitions, CSS Effects, Columns Floats, Box Sizing, 3D

Transforms & Animations)

3. Responsive Design & Media Query Review

4. Samples of my work

Page 5: HTML5, CSS3 & Responsive Design

HTML, CSS, & JavaScript

1 2 3 4

Page 6: HTML5, CSS3 & Responsive Design

1 2 3 4

HTML doctype

CSS in the <head>

JavaScript at the bottom before </body>

Tags & attributes in lower case

Attributes double quoted

HTML, CSS & JavaScript

Page 7: HTML5, CSS3 & Responsive Design

1 2 3 4

HTML, CSS & JavaScript

Page 8: HTML5, CSS3 & Responsive Design

HTML

1 2 3 4

HTML, CSS & JavaScript

HTML5 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!DOCTYPE html>

Page 9: HTML5, CSS3 & Responsive Design

1 2 3 4

HTML, CSS & JavaScript

http://www.w3schools.com/html/default.asp

Reference:

Page 11: HTML5, CSS3 & Responsive Design

1 2 3 4

HTML, CSS & JavaScript

CSS Selectors: (Pseudo-classes & Advanced)

Page 12: HTML5, CSS3 & Responsive Design

1 2 3 4

HTML, CSS & JavaScript

CSS box Model:

Page 13: HTML5, CSS3 & Responsive Design

1 2 3 4

HTML, CSS & JavaScript

CSS Float:

Page 14: HTML5, CSS3 & Responsive Design

1 2 3 4

HTML, CSS & JavaScript

CSS Position:

Relative

Absolute

Page 15: HTML5, CSS3 & Responsive Design

1 2 3 4

Page 16: HTML5, CSS3 & Responsive Design

1 2 3 4

CSS3 (Transitions, CSS Effects, Columns Floats, Box Sizing, 3D Transforms & Animations)

Animate your HTML5

Reference:

What CSS3 can do?

Page 17: HTML5, CSS3 & Responsive Design

Responsive Design

1 2 3 4

Page 18: HTML5, CSS3 & Responsive Design

It’s a Philosophy

Small, Medium & Large

ONE WEBSITE

1 2 3 4

Responsive Design

Page 20: HTML5, CSS3 & Responsive Design

Fluid Grid: Turning static layout to fluid one by turning the static values to relative values.

Static Width= 700px

Fluid Width= 70%

Static Width= 300px

Fluid Width= 30%

1 2 3 4

Responsive Design

Page 21: HTML5, CSS3 & Responsive Design

Media Queries: A media query is a CSS expression that will test certain device features , and return a boolean value. If the value is true, styles defined in the media query block will be applied to the document.

1 2 3 4

Responsive Design

Page 22: HTML5, CSS3 & Responsive Design

Where may I query ?

• Link tags

• @import directive

• CSS

1 2 3 4

Responsive Design

Page 23: HTML5, CSS3 & Responsive Design

What we can Query:

• Device-width/Device-height

• Width/Height

1 2 3 4

Responsive Design

Page 24: HTML5, CSS3 & Responsive Design

What we can Query:

• Resolution

• Orientation

1 2 3 4

Responsive Design

Page 25: HTML5, CSS3 & Responsive Design

Media Query Anatomy:

@media - Specifies the start of a media query.

only - States that the following query should apply only to screen media types. The only keyword also serves to hide the associated style rules from older browsers that don't support media queries.

screen - Specifies the media type we are targeting. Other media types include print, handheld, and tv.

and - Indicates the end of the media type specification and the beginning of the media feature rule.

(max-width: 768px) - Media feature rule to test. In this case, the browser window must be 768px or smaller for the rules to apply.

1 2 3 4

Responsive Design

Page 26: HTML5, CSS3 & Responsive Design

Fluid Images:

Demo

1 2 3 4

Responsive Design

Page 27: HTML5, CSS3 & Responsive Design

Samples of my Work

1 2 3 4

Page 29: HTML5, CSS3 & Responsive Design
Page 30: HTML5, CSS3 & Responsive Design

Presented by: Fawzia Essa Twitter: @fawziaessa