HTML5 – The Power of HTML5 – The Power of Thomas Lewis HTML5 Principal Technical Evangelist Microsoft | asimplepixel.tumblr.com.

Slides:



Advertisements
Similar presentations
HTML5 Overview HOANGPT2. 1. General 2. New Elements List 3.
Advertisements

New Tags, New Attributes, New JavaScript APIs, Forms, Validation, Audio, Video, SVG, Canvas Doncho Minkov Telerik Corporation
Iframes & Images Using HTML.
An Introduction Timmy Kokke | UNIT4 Internet Solutions | Expression Blend MVP / Webguy.
JavaScript Objects - DOM CST 200 JavaScript. Objectives Introduce JavaScript objects Introduce Document Object Model Introduce window object Introduce.
Lecture # 11 JavaScript Graphics. Scalable Vector Graphics (SVG) Scalable Vector Graphics (SVG), as the name implies, are - scalable (without pixelation):
Scriptable, extensible, easily editable Easy to apply CSS styles XML-based Resizable without degradation Vector graphics Fast download Compression.
MASTERY OBJECTIVE: Learn parts of an html document Learn basic html tags HTML-An Introduction.
HARDWARE ACCELERATED WEB BROWSER Berlian Juliartha M.P Indah Yudi Suryani Wais Al Qonri H
HTM03. Let’s Get Started Everything is drawn onto the 2D rendering context.
Introduction to SVG & Batik Presented by Shang-Ming Huang.
© 2009 Research In Motion Limited BlackBerry themes and animated graphics.
1 Canvas Tag In JavaScript Amy Luong Yan Ge Hon Yee Regneel Prahalad Michael Leggio.
XML A brief introduction ---by Yongzhu Li. XML --- a brief introduction 2 CSI668 Topics in System Architecture SUNY Albany Computer Science Department.
Chapter 9 Introduction to the Document Object Model (DOM) JavaScript, Third Edition.
W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application with a clean migration path from HTML 4.01 CSS: Style sheets.
Introduction to Computer Graphics
Where Do I Start REFERENCE: LEARNING WEB DESIGN (4 TH EDITION) BY ROBBINS 2012 – CHAPTER 1 (PP. 3 – 14)
Web Design Basic Concepts.
Canvas, SVG, Workers Doncho Minkov Telerik Corporation
Director of Computer Center, DaYeh University Ku-Yaw Chang.
Evaluation of HTML5 Graphics for Data Structure Visualization
What is Web Design?  Web design is the creation of a Web page using hypertext or hypermedia to be viewed on the World Wide Web.
UNIT 8 DRAWING WITH THE HTML5 CANVAS ELEMENTS AND FORMS.
Building the User Interface by Using HTML5: Text, Graphics, and Media Lesson 2.
New Tags, New Attributes, New JavaScript APIs, Forms, Validation, Audio, Video, SVG, Canvas Doncho Minkov Telerik Corporation Technical.
School of Computer Science & Information Technology G6DPMM - Lecture 17 Scaleable Vector Graphics.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
Congratulations! You are part of a global community of thousands of web developers who attend Web Camps to keep their web development skills up-to-date.
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
SVG for Designers Tom Hoferek. Objectives Introduce SVG Illustrate its capabilities Demonstrate SVG in action Speculate, discuss, answer questions.
1 Scalable Vector Graphics (SVG). 2 SVG SVG is an application language of XML. “SVG is a language for describing two- dimensional graphics in XML. SVG.
Lecture 16 Image Document Formats. Bitmap vs. Vector Images Bitmaps do not generally.
SVG & INKSCAPE Student Talk: Erica Weiss DIG 4104c Spring 2014.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 10.
Cs332a_chapt10.ppt CS332A Advanced HTML Programming DHTML Dynamic Hypertext Markup Language A term describing a series of technologies Not a stand-a-lone.
HTML.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2 Revised by Dr. T. Tran for CSI3140.
Web Technologies Lecture 2 HTML and CSS. HTML Hyper Text Markup Language – Describes web documents – Made up of nested HTML markup tags – Tags are the.
HTML JAVASCRIPT. CONTENTS Javascript Example NOSCRIPT Tag Advantages Summary Exercise.
Are You Smarter Than a 5 th Grader? 1,000,000 5th Grade HTML 5th Grade Syntax 4th Grade HTML 4th Grade Syntax 3rd Grade HTML 3rd Grade Syntax 2nd Grade.
Headings are defined with the to tags. defines the largest heading. defines the smallest heading. Note: Browsers automatically add an empty line before.
INTRODUCTION TO HTML5 New HTML5 User Interface and Attributes.
JavaScript V Robin Burke ECT 270. Outline Manipulating style Special effect examples.
IE Developer Tools Jonathan Seitel Program Manager.
Chapter 6 Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc.Slide 1.
(1) HTML5, CSS, Twitter Bootstrap. (2) HTML5 Will be the new standard New features Drag and Drop and Support for local storage,,,, New input types Removed.
® ® copyright © 2013 Open Geospatial Consortium What HTML5 and REST mean to the Geo community Raj Singh, PhD Open Geospatial Consortium
XML DOM Week 11 Web site:
SVG technology SVG technology is what we want? is what we want? Jaehoon Woo KNU Real-Time Systems Lab. KNU Real-Time Systems Lab.
Part – 3 : HTML 5 SVG Tag. † SVG stands for Scalable Vector Graphics. † SVG is used to define vector-based graphics for the Web. † SVG defines the graphics.
XHTML. What Is XHTML? XHTML stands for EXtensible HyperText Markup Language XHTML is almost identical to HTML XHTML is stricter than HTML XHTML is HTML.
Development of Internet Applications WebDesign Ing. Jan Janoušek 9.
The HTML5 logo was introduced by W3C in 2010
DHTML.
SVG & DOM Manipulation via Javascript
Introduction to HTML5.
Chapter 4: Scalable Vector Graphics (SVG)
Windows Summit /4/2018 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be.
Application with Cross-Platform GUI
Building beautiful and interactive apps with HTML5 & CSS3
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
WPF AKEEL AHMED.
HTML A brief introduction HTML.
.NET and .NET Core 7. XAML Pan Wuming 2017.
In-Depth Look at Internet Explorer 9
Vector iconography: Using SVG images in your app
D3.js Tutorial (Hands on Session)
Types of Spatial Data Sites
D3.js Tutorial (Hands on Session)
Presentation transcript:

HTML5 – The Power of HTML5 – The Power of Thomas Lewis HTML5 Principal Technical Evangelist Microsoft | asimplepixel.tumblr.com

Demos

Apple’s Dashboard Widget Platform Supported in all modern browsers Shimmed for browsers that do not support Canvas (caveats apply) HTML5 element that allows for dynamic, scriptable rendering of 2D shapes and bitmaps

Immediate Mode – Faster – Less Memory Intensive – More Work for Developers Without JavaScript, you are toast Good for casual games, charting, data visualization, & consumer micro-sites

Fundamentals

The API (~45 methods and 21 attributes) State Transformations Compositing Colors and styles Line caps/joins Shadows Rects Path API Focus management Drawing images Text Pixel Manipulation Interfaces – CanvasGradient – TextMetrics – ImageData – CanvasPixelArray

Hello World of Canvas

Primitives…yeah, but how do I build something like a game?

Would you like to play a game?

Sample Walkthrough (Sparklines)

What about SVG?

SVG SVG describes “Scalable Vector Graphics”. Retained mode rendering. Like HTML, SVG is built into the document using elements, attributes and styles.

Tools

Tips and Misc.

ctx.shadowOffsetX = 10; ctx.shadowOffsetY = 10; ctx.shadowBlur = 10; ctx.shadowColor = "rgba(0, 0, 0, 1)"; ctx.fillText(“Winning!”, 10, 25); // All future operations will also have a shadow ctx.strokeRect(0, 0, 115, 40);

ctx.save(); ctx.shadowOffsetX = 10; ctx.shadowOffsetY = 10; ctx.shadowBlur = 10; ctx.shadowColor = "rgba(0, 0, 0, 1)"; ctx.fillText(“Winning!”, 10, 25); ctx.restore(); // All future operations will NOT have a shadow ctx.strokeRect(0, 0, 115, 40);

Accessibility - Fallback Content Focus Access to the DOM tree within tag Elements within the tag are considered Fallback content and are only displayed on screen when Canvas is not supported. This same Fallback area can be used for Accessibility description of what is on the Canvas

DO: Canvas feature detection code DON’T: Browser detection using User Agent string DON’T: Conditional comments

DO: Add a DOCTYPE Add W3C HTML5 DOCTYPE: Or add common strict DOCTYPE:

DO: Use a 17ms interval for setTimeOut() and SetInterval(). They take integer values – round up 16.7ms. DON’T: Use a 1ms interval for timers Using a smaller interval than 17ms has no benefit: it results in choppy animation and reduced battery life

Disney:Tron Case Study Built in one month (Vectorform) Hardware acceleration 5 days of image prep Considered CSS, pure JavaScript, others Struggled with video sync capabilities of different browsers

Resources

Thank asimplepixel.tumblr.com