HTML5 THE USEFUL BITS Alex Mackey Senior Consultant Readify SESSION CODE: WEB304 (c) 2011 Microsoft. All rights reserved.

Slides:



Advertisements
Similar presentations
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

MVC - LESSONS LEARNT FROM BEING BURNT Malcolm Sheridan - Quantitative Project Leader ANZ SESSION CODE: #WEB306.
HTML 5. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML came in The web has changed.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Payroll and HR Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
HTML 5 Tutorial Chapter 1 Introduction. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML.
Lecture 18. HTML5 and JavaScript Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell Exploring the Internet,
Windows 7 Training. Windows ® 7 Compatibility Installer Detection.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
NEW WINDOWS PHONE “MANGO” APPLICATION PLATFORM SERVICES Chris blog.walshie.me SESSION CODE: WPH304 (c) 2011 Microsoft. All rights.
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
BUILDING HYBRID APPS WITH DYNAMICS CRM & WINDOWS AZURE Guy Riddle & George Doubinski Dynamics CRM MVP’s SESSION CODE: DEV-DYN-MID306 (c) 2011 Microsoft.
Feature: SmartList Usability Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Session 1.
HTML 5 New Standardization of HTML. I NTRODUCTION HTML5 is The New HTML Standard, New Elements New Attributes Full CSS3 Support Video and Audio 2D/3D.
CHASING THE EVOLVING WEB Aaron Readify Senior Developer, Technical Specialist (Web) Microsoft MVP – Internet Explorer (Development) SESSION.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Connect with life Connect with life
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: Employee Self Service Timecard Entry © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
WINDOWS PHONE FIRST UP/ ALL UP Nick Randolph (Built to Roam) Dave Glover (Microsoft) SESSION CODE: #WPH202 (c) 2011 Microsoft. All rights reserved.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

CONNECTING PHONE APPLICATIONS TO THE CLOUD Nick Randolph (Built to Roam) SESSION CODE: COS-WPH208 (c) 2011 Microsoft. All rights reserved.
INTRODUCTION TO WINDOWS AZURE APPFABRIC COMPOSITE APPLICATIONS Lewis Benge Creative Technologist Whybin\TBWA\Tequila SESSION CODE: COS-MID306.
CROSS PLATFORM MOBILE APPLICATION DEVELOPMENT Nick Randolph (Built to Roam) SESSION CODE: DEV-WPH314 (c) 2011 Microsoft. All rights reserved.
JAVASCRIPT WITH A VIEW Jordan Knight Solution Architect Xamling SESSION CODE: WEB305 (c) 2011 Microsoft. All rights reserved.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
KILLER REAL-WORLD POWERPIVOT EXAMPLES Grant Paisley SQL Server MVP Angry Koala SESSION CODE: DAT303 (c) 2011 Microsoft. All rights.
2 Screens and A Cloud, Without Being Cut! An MMO in 45 Minutes DEV305.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
UNLOCK THE POWER OF USER DEVICE AFFINITY IN SCCM 2012 James SESSION CODE: #SEC309.
CREATING CUSTOM WINPE 3.0 BOOT IMAGES Johan Arwidmark Chief Technical Architect Knowledge Factory SESSION CODE: CLI303 (c) 2011 Microsoft. All rights.
MULTI-TASKING AND APPLICATION SERVICES IN WINDOWS PHONE 7.5 Chris blog.walshie.me SESSION CODE: WPH305 (c) 2011 Microsoft. All rights.
OVER THE FENCE DESIGNER DEVELOPER WORKFLOW Jordan & Alex Knight Directors Xamling SESSION CODE: DEV203 (c) 2011 Microsoft. All rights reserved.

THE SOURCE OF 4 TH & MAYOR: CODE, HACKS, TRICKS Jeff Wilcox Senior Software Development Engineer Microsoft SESSION CODE: WPH308 (c) 2011 Microsoft. All.
THE FUTURE OF C#: GOOD THINGS COME TO THOSE WHO ‘AWAIT’ Joseph Albahari SESSION CODE: DEV411 (c) 2011 Microsoft. All rights reserved.
HETEROGENEOUS DEVELOPMENT WITH VISUAL STUDIO 2010 Mitch Denny Chief Technology Officer Readify SESSION CODE: #DEV307 (c) 2011 Microsoft. All rights reserved.
SPC Developer 6/10/2018 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
HTML 5 Tutorial Chapter 1 Introduction.
Using JavaScript to Build HTML5 Applications
The Challenges of moving Document Creation to the Cloud
Domain Driven Design, Domain Events and Unit Testing
Migrating XP to Windows 7 using ConfigMgr 2007
Chasing the evolving web
MAP & ACT Pre deployment planning for Windows 7 or Server 2008 R2
What’s new for Silverlight & XNA developers in Windows Phone Mango
(c) 2011 Microsoft. All rights reserved.
Migrating your applications to Azure
The Essential Windows Azure Developers Toolkit
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Hyper-V server deployment - Using the right tools
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
(c) 2011 Microsoft. All rights reserved.
(c) 2011 Microsoft. All rights reserved.
Шитманов Дархан Қаражанұлы Тарих пәнінің
Presentation transcript:

HTML5 THE USEFUL BITS Alex Mackey Senior Consultant Readify SESSION CODE: WEB304 (c) 2011 Microsoft. All rights reserved.

ASP.net/SQL dev for last 10 years Author MVP Organized DDD Melbourne About me

"I don't think it's ready for production yet" Philippe Le Hegaret W3C interaction domain leader

Work in progress

Myths History Obsolete items What’s in HTML5? Detecting HTML5 support Conclusion Agenda

“You cannot use HTML5 till 2022”

“HTML 5 will break the internets”

“XHTML is dead”

“HTML5 includes Geolocation, CSS3, SVG, Web fonts etc etc”

“HTML5 replaces Silverlight & Flash”

HTML A very brief history

WHATWG Mozilla, Opera & later Apple created proposal for next generation of apps Proposal initially rejected W3C asked if could use as basis for HTML5 HTML 5 “officially” started in 2004 Wont be considered recommendation until 2 complete implementations History

Backwards compatible Stress practical usage Separate presentation from mark-up Well-defined error handling Don’t expose users to authoring errors Written in HTML & XML syntax Scripting is here to stay HTML5 Principals

Obsolete

Obsolete elements

So what’s new? ► Doctype, syntax, ► New DOM tranversal/manipulation methods ► Semantic elements ► Form enhancements ► Audio/Video ► Canvas ► Offline ► Stuff that people think is HTML5 but isn't..

No need to self-close tags: No need to wrap attributes in quotations: Case insensitive: Syntax

Semantic

Most popular class names

Most popular ID names

New semantic elements Header (intro or nav aids) Nav (navigation) Aside (separate from main content e.g advert) Footer (footer of document or section) Article (self contained and independent) Section (splitting page or article up) Can be nested gsnedders.html5.org/outliner/

Semantic Issues Browser stylesheet doesn’t target unrecognised elements IE needs hack to recognise elements: Firefox 2 (or Gecko-based browser pre 1.9b5) closes an unrecognised element and moves content outside

Forms

New input types Placeholder Autofocus Required New types and attributes ignored if not supported Drag and drop API

Element and document changes HTMLElement getElementsByClassName() HTMLDocument getElementsByClassName() activeElement hasFocus getSelection()

Audio/Visual

No one codec WebM? Make sure you add MIME type to IIS Consider 3 rd party wrapper js players e.g. SublimeVideo, Open Standard Media player

Canvas

► Supported in most modern browsers ► Workaround for earlier versions of IE: ► Experimental builds of opera have 3D support

Offline

Cache Manifest Browser history manipulation Local Storage Session storage

Microdata & Data

Scoped name/value pairs Any attribute starting with "data-" will be treated as a storage area for private data Previously micro-formats, RDFs Some elements get value from src or href /richsnippets

Not strictly HTML5..

Geolocation Web workers Web sockets File API

Web workers Previously long running scripts stopped browsers Use for computational intensive tasks No access to page DOM and cannot communicate with parent Workers can spawn workers Execution doesn’t block UI leaving responsive

Progressive Enhancement

Detection Check if property exists on global object: if (navigator.geolocation) Check if method exists on object: document.createElement('canvas').getContext; Use Modernizer (modernizr.com) if (Modernizr.audio)

BrowserHTML5testSunspider (ms)Kraken (ms)V8v5 IE 8 ( ) IE 9 beta ( ) IE 9 ( ) IE 10 Preview ( ) Firefox (3.6.9) Firefox (4.0b6) Chrome ( ) Opera (10.62) Safari ( ) ` Html5test.com (bonus points ignored) www2.webkit.org/perf/sunspider-0.9/sunspider.html krakenbenchmark.mozilla.com v8.googlecode.com/svn/data/benchmarks/v5/run.html

FunctionalityIE 8IE 9 betaFirefoxFirefox 4ChromeOperaSafari Doctype trigger strictYYYYYYY CanvasNYYYYYY VideoNPartial AudioNPartial FormsNNNPartial Drag and dropNNYYYNY Application CacheNNYYYYY Geo locationNNYYYYY Cross documentYYYYYYY Web socketsNNNYYNY Session storageYYYYYYY Local storageYYYYYYY SVG in textNYNYNNN Web workersNNYYYYY Web SQL DbNNNNYYY

Don’t use.. ► Semantic elements? ► Some new elements e.g. progress ► Drag and drop API ► Audio/Visual?

Features to use now ► Doctype ► Input types and attributes ► Cross document messaging ► Canvas ► Microdata & Data attribute ► Browser history APIs ► Geo-location & SVG ► Offline (careful!)

Any questions? readify.net simpleIsBest.co.uk

Further reading ► ► dev.w3.org/html5/spec/Overview.html ► diveintohtml5.com/ ► html5doctor.com/microformats/ ► developer.mozilla.org/en/Canvas_tutorial ► vimeo.com/ ► Html5demos.com ► webdatabase/ ► ► Introducing HTML5 Bruce Lawson & Remy Sharp ► PRO HTML5 Programming Lubbers et al

Enrol in Microsoft Virtual Academy Today Why Enroll, other than it being free? The MVA helps improve your IT skill set and advance your career with a free, easy to access training portal that allows you to learn at your own pace, focusing on Microsoft technologies. What Do I get for enrolment? ► Free training to make you become the Cloud-Hero in my Organization ► Help mastering your Training Path and get the recognition ► Connect with other IT Pros and discuss The Cloud Where do I Enrol? Then tell us what you think.

© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. (c) 2011 Microsoft. All rights reserved.