Html5 &&& css3

17
HTML5 & CSS3

Transcript of Html5 &&& css3

Page 1: Html5 &&& css3

HTML5 & CSS3

Page 2: Html5 &&& css3

HTML

Header

Navigation

Aside

Footer

Section

ArticleFooter

ArticleFooter

ArticleFooter

Figure

Image, Video, Quote, Table, etc…

Legend

Page 3: Html5 &&& css3

HTML5

HTML5 ≈ HTML 5 + CSS 3 + JavaScript Rich Internet Applications (RIA) HTML5 x 5 Caution and Progress Example and Reference Sites

Page 4: Html5 &&& css3

New In HTML5

Simplified and Loose Syntax New Elements and Attributes Embedded Media Canvas Offline Storage Drag and Drop Geo-Location

Page 5: Html5 &&& css3

5 HTML Enhancements

HTML Forms CSS Offline applications Local storage

Page 6: Html5 &&& css3

HTML Extended

Document Flow: div, section, article, nav, aside, header, footer

Audio, Video and Embed Canvas: paths, gradients, image

manipulation, events Micro data for semantics and enhanced

search engine results (Google Rich Snippets)

Page 7: Html5 &&& css3

5 HTML Enhancements

HTML Forms CSS Offline applications Local storage

Page 8: Html5 &&& css3

IN THE REAL WORLD

Pros Better semantics Lean code Improved user experience

Cons Some work is needed to accommodate older

browsers

HTML5

Why HTML5 ????

Page 9: Html5 &&& css3

Form Enhancements

Placeholder text Specific text input: email, URL, number,

search Slider Date picker User Agent validation

Page 10: Html5 &&& css3

Audio and Video Tag

Video for Everybody code by Kroc Camen

<video width="480" height="270" controls><source src="mafSept10Welcome.mp4" type="video/mp4" /><source src="mafSept10Welcome.ogv" type="video/ogg" /><object width="480" height="289" type="application/x-shockwave-flash" data="player.swf?&amp;file=mafSept10Welcome.flv”><param name="movie" value="player.swf?&amp;file=mafSept10Welcome.flv&amp" /></object></video>

FREE!

See http://videojs.com for details and downloads.

Developer Reference Sites

Page 11: Html5 &&& css3

CSS3

HTML Forms CSS Offline applications Local storage

Page 12: Html5 &&& css3

IN THE REAL WORLD

Pro Smaller download Less JavaScript Better user experience

Cons Some work is needed to accommodate older

browsers

CSS3

Why CSS3 ????

Page 13: Html5 &&& css3

CSS Effects

Rounded corners Gradients Box and text shadows Fonts Transparencies Multiple background images and border images Multiple columns and grid layout Box sizing Stroke and outlines Animation, movement and rotation Improved selectors

Page 14: Html5 &&& css3

CSS Effect Example

HTML Forms CSS Offline applications Local storageHELLO

.amazing {border: 1px solid blue;color: red;background-color: blue;

-webkit-border-radius: 40px;-moz-border-radius: 40px;border-radius: 40px;

-webkit-box-shadow: 8px 8px 6px #474747;-moz-box-shadow: 8px 8px 6px #474747;box-shadow: 8px 8px 6px #474747;

text-shadow: 8px 8px 2px #595959;filter: dropshadow(color=#595959, offx=8, offy=8);}

http://css3generator.com/

Page 15: Html5 &&& css3

Demos and Experiments

Chrome Experimentshttp://www.chromeexperiments.com

Apple HTML5 Showcase http://www.apple.com/html5/

Canvas Demoshttp://www.canvasdemos.com

RIA Demos with browser support listedhttp://html5demos.com

Page 16: Html5 &&& css3

Developer Reference Sites

W3Chttp://dev.w3.org/html5/html-author/http://w3.org/TR/css3-roadmap/

W3Schools HTML 5 Referencehttp://www.w3schools.com/html5/

Dive Into HTML 5 (prerelease site for an O’Reilly book)http://diveintohtml5.org

WebKit (Safari and Chromium)http://developer.apple.com/safari/library/navigation/http://www.chromium/home/

Mozillahttp://developer.mozilla.org/en/html/html5/

IE 8 & 9http://msdn.microsoft.com/en-us/library/aa737439.aspxhttp://ie.microsoft.com/testdrive/

Page 17: Html5 &&& css3

NILESH PADWAL