html5 and css 3

29
HTML5: how did we get here? Bruce Lawson, Opera Software

Upload: brucelawson

Post on 28-Jan-2015

128 views

Category:

Technology


5 download

DESCRIPTION

Talk to Staffordshire University students 28 October 2010

TRANSCRIPT

Page 1: HTML5 and CSS 3

HTML5: how did we get here?

Bruce Lawson, Opera Software

Page 2: HTML5 and CSS 3

11/01/10

2004 W3C focus on XHTML 2.0 and beyond...

http://www.flickr.com/photos/craiga/17071467/

Page 3: HTML5 and CSS 3

11/01/10

XHTML 2: This is not my beautiful wife!

<img />

Page 4: HTML5 and CSS 3

11/01/10

Page 5: HTML5 and CSS 3

11/01/10

Page 6: HTML5 and CSS 3

11/01/10

Paper to W3C, 2004

We consider Web Applications to be an important area that has not been adequately served by existing technologies… There is a rising threat of single-vendor solutions addressing this problem before jointly-developed specifications.

http://www.w3.org/2004/04/webapps-cdf-ws/papers/opera.html

Page 7: HTML5 and CSS 3

11/01/10

Paper to W3C, 2004● 1. Backwards compatibility, and a clear migration path.● 2. Well-defined error handling.● 3. Users should not be exposed to authoring errors.● 4. Practical use: every feature that goes into the Web-

applications specifications must be justified by a practical use case. The reverse is not necessarily true.

● 5. Scripting is here to stay (but should be avoided where more convenient declarative mark-up can be used).

● 6. Avoid device-specific profiling.● 7. Make the process open.

Page 8: HTML5 and CSS 3

11/01/10

© Copyright 2004-2010 Apple Computer, Inc., Mozilla Foundation, and Opera Software ASA.

You are granted a license to use, reproduce and create derivative works of this document.

Page 9: HTML5 and CSS 3

11/01/10

Page 10: HTML5 and CSS 3

11/01/10

Page 11: HTML5 and CSS 3

11/01/10

Design Principles - Compatibility

• Support Existing Content• Do not Reinvent the Wheel• Pave the Cowpaths• Evolution Not Revolution

www.w3.org/TR/html-design-principles/

Page 12: HTML5 and CSS 3

11/01/10

Design Principles - Utility

• Solve Real Problems• Secure By Design• Separation of Concerns• DOM Consistency

Page 13: HTML5 and CSS 3

11/01/10

Design Principles -Priority of Constituencies

Consider users over authors over implementors over specifiers over theoretical purity.

Page 14: HTML5 and CSS 3

11/01/10

Design Principles - Interoperability

• Well-defined Behavior• Avoid Needless Complexity• Handle Errors

Page 15: HTML5 and CSS 3

11/01/10

Design Principles - Universal Access

• Media Independence• Support World Languages• Accessibility

Page 16: HTML5 and CSS 3

11/01/10

HTML5<!DOCTYPE html>

Page 17: HTML5 and CSS 3

11/01/10

Geo

SVG

Page 18: HTML5 and CSS 3

11/01/10

SVG

Page 19: HTML5 and CSS 3

11/01/10

CSS

Page 20: HTML5 and CSS 3

11/01/10

New Exciting Web Technology

Page 21: HTML5 and CSS 3
Page 22: HTML5 and CSS 3

11/01/10

HTML5 does not replace HTML 4.01

Page 23: HTML5 and CSS 3

11/01/10

HTML5 has more bling!

Page 24: HTML5 and CSS 3

11/01/10

HTML5 is umbrella term:markup elements and JavaScript APIs

Page 25: HTML5 and CSS 3

11/01/10

Page 26: HTML5 and CSS 3

11/01/10

Top 20 class names1. footer 11. button2. menu 12. main3. style1 13. style3

4. msonormal 14. small5. text 15. nav

6. content 16. clear7. title 17. search

8. style2 18. style49. header 19. logo

10. copyright 20. bodyhttp://devfiles.myopera.com/articles/572/classlist-url.htm

Page 27: HTML5 and CSS 3

11/01/10

Top 20 id names1. footer 11. search

2. content 12. nav3. header 13. wrapper

4. logo 14. top5. container 15. table2

6. main 16. layer27. table1 17. sidebar8. menu 18. image19. layer1 19. banner

10. autonumber1 20. navigationhttp://devfiles.myopera.com/articles/572/idlist-url.htm

Page 28: HTML5 and CSS 3

Where does that highway go to?● Build an HTML5 page● See that HTML5 is real world – document what browsers do

now and extend that● Use some new structural elements and style them with CSS● Chuck in an intelligent form

Page 29: HTML5 and CSS 3

[email protected], http://dev.opera.com

www.brucelawson.co.uk twitter.com/brucel