HTML5 is the next wave of development for the web, with the support from IE9 and IE10. Even Windows 8 will support native apps written in HTML5. This session will give an overview and a deeper dive into writing effective HTML5 together with your existing ASP.NET experience to create the best next generation web experience.
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
HTML5 for ASP.NET Developers
1. HTML5 and ASP.NET
Justin Lee
Software Development Consultant
triplez@justinlee.sg
http://justinlee.sg
2. HTML5
• HTML5 + Browser API +
CSS3 + JavaScript
• New Elements and
Attributes Markup
• New APIs for DOM
• Video, Audio, 2D, 3D,
Animations, File, Drag-
and-Drop, etc. support
3.
4.
5.
6.
7.
8. Getting things set up
• Microsoft Visual Studio 2010 SP1
• Web Standards Update for Microsoft Visual
Studio 2010 SP1
• ASP.NET MVC3
• NuGet
12. HTML5 New Markups
• <!DOCTYPE html>
• <header></header>, <section></section>,
<footer></footer>
• <nav></nav>
• New <input></input> attributes
• <audio></audio>, <video></video>
• <progress></progress>
• <meter></meter>
• Etc. etc. etc. etc. etc.
18. HTML5 + JS
• document.getElementsByClassName,
document.querySelectorAll
• Custom data-* attributes
• Element.classList
• History API
• Etc. etc. etc. etc.
20. Futures for Visual Studio vNext
• Web Form will be HTML5 compatible
• MVC and Razor will also support HTML5
• Visual Studio Intellisense will have better JS
and CSS detection
21. Tips
• Use ASP.NET MVC 3, not ASP.NET Web Forms
(until ASP.NET 4.5)
• Use Modernizr to maintain backward
compatibility
• Use Web Workers to maintain responsiveness
22. Tips
• Consider carefully what should be processed
Server-Side and Client-Side
• Not all browsers support all features
(Especially IE)
• Learn the new markups, what you need might
just be there.