SlideShare une entreprise Scribd logo
1  sur  32
"HTML5” – More than
    just HTML5
     Lohith G N
About Me…

-   Mysorian, Working in Bangalore

-   B.E. – I & P, 10 years of experience

-   Microsoft MVP 2K11 – ASP.NET/IIS

-   Telerik Insider – Speakers sponsored by Telerik

-   Bangalore DotNet User Group Member
WHATWG: HTML is the new HTML5!
What is “HTML5”?
HTML5 is...
• the future of the web
• still under development
• a huge spec, and testing isn’t binary

HTML5 is not ...
• “How To Meet Ladies” version 5 (Credit: @hackatac)
• Just a marketing message
The “map” of HTML5
Specification lifecycle


                                           Candidate        Proposed
   First Public                                                          Recommendati
                  Working Draft          Recommendati     Recommendati
  Working Draft                                                               on
                                              on               on


                                  Last              Call to
                                  call            implement
W3C HTML5 Specification



• ~1200 print pages
• Issue Tracker: ~37 open
• Bug Tracker: ~208 open
• Mailing list: ~4000 emails/month


                                     www.w3.org/TR/html5
The map of “HTML5”




                                                Candidate
   First Public                                              Recommendati
                  Working Draft   Last Call   Recommendati
  Working Draft                                                   on
                                                   on
A whirlwind tour of “HTML5”
<!DOCTYPE..
• From:
 • HTML 4.01 Strict/Transitional/Frameset
 • XHTML 1.0 Strict/Transitional/Frameset


       <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



• To
 • HTML5

       <!DOCTYPE html>
<video>
• Support for the HTML5 <video> element
  • Industry-standard MPEG-4/H.264 video
  • Video can be composited with anything else on the page
   • HTML content, images, SVG graphics
   • Hardware accelerated, GPU-based decoding
• Supports fallback to different formats (mp4, webm) as well
  as Flash/Silverlight
<video id="myVideo" controls>
    <source src="videos/video.mp4" type="video/mp4"/>
    <!–- insert sorry message here or fall back to SL/Flash -->
    <object type="application/x-silverlight-2">
        <param name="source" value="player.xap">
    </object>
</video>                                                     Demo
<audio>
• Add audio content to page with native playback,
  events & controls
• Relies on browser features
• Supports fallback to different formats (mp3, aac)

<audio src="audio.mp3" id="audioTag" autoplay controls>
  <!-- Only shown when browser doesn’t support audio -->
  <!-- You could embed Flash or Silverlight audio here -->
</audio>
SVG Basics
XML-based
• Scriptable, extensible, easily editable
• Easy to apply CSS styles

Vector graphics
• Resizable without degradation
• Vector images are composed of shapes
  instead of pixels

Compression
• Fast download

Easy debugging
• It is just XML!
Scalable Vector Graphics (SVG)
• Support for:
 • Full DOM access to SVG elements
 • Document structure, scripting, styling, paths, shapes, colors, transforms,
   gradients, patterns, masking, clipping, markers, linking and views




<svg width="400" height="200" xmlns="http://www.w3.org/2000/svg">
    <rect fill="red" x="20" y="20" width="100" height="75" />
    <rect fill="blue" x="50" y="50" width="100" height="75" />
</svg>

                                                                  Demo
Canvas
• A block element that allows developers to draw 2d
  graphics using JavaScript
 • Methods for drawing include: paths, boxes, circles, text and
   rasterized images


<canvas id="myCanvas" width="200" height="200">
  Your browser doesn’t support Canvas, sorry.
</canvas>

<script type="text/javascript">
  var example = document.getElementById("myCanvas");
  var context = example.getContext("2d");
  context.fillStyle = "rgb(255,0,0)";
  context.fillRect(30, 30, 50, 50);                    Demo
</script>
                                                                  16
SVG or Canvas
Characteristi
                SVG                               Canvas
c
When to use     Highly detailed drawing, charts   Programmatic rendering,
                                                  games
Drawing Mode    By Runtime                        By Application
DOM Support     Each SVG element part of          <CANVAS> part of the DOM
                DOM
Animation       Manipulating objects in the       Using direct scripting in canvas
                DOM
GPU             Yes                               Yes
acceleration
Performance     Best for larger surface and/or    Best for smaller surface and/or
                small # of objects                large # of objects
Modification    Tag, Script & CSS                 Script only
GeoLocation
• Let websites use your location information to improve their
  services
  • Requires users consent
  • Navigator.geolocation.getCurrentPosition();
  • Navigator.geolocation.watchPosition();
• Resolution via IP reverse lookup / Wi-Fi triangulation
function getLocation() {
  if (navigator.getlocation != undefined) {
    navigator.getlocation.getCurrentPosition(callBack);
  }
}

function callBack(position) {
  var accuracy = position.coords[“accuracy”]; //in meters
  var latitude = position.coords[“latitude”];
  var longitude = position.coords[“longitude”];             Demo
}
                                                                   18
CSS3
• 2nd largest spec in “HTML5”
• Major revision to CSS 2.1
• CSS 3
 •   Borders & Colors
 •   Backgrounds & Shadows
 •   WOFF
 •   Media queries
 •   Selectors
 •   Transforms
CSS3 Borders
• CSS3 Borders
 • Rounded corners with the border-radius property



div.top {
 border-radius: 152px 304px 228px 152px;
 border-style: double;
 border-width: 42px;
 padding: 12px;
}
CSS3 Colors
• CSS3 Colors & Transparency
 • Alpha color with rgba() and hsla() color functions
 • Transparency control with the opacity property
 • Full support for CSS3 color keywords

div.top {
 background-color: rgba(155,0,155,0.5)
}
div.bottom {
  background-color: hsla(0,100%,50%,0.2);
}
CSS3 Shadows
 • CSS3 Shadows
  • box-shadow property on block elements
  • Inset & Multiple shadows



div{…
    box-shadow: 20px 20px 20px hsla(0,100%,50%,0.2);
}

div{…
    box-shadow: 20px 20px 20px hsla(0,100%,50%,0.2),
    -20px -20px 20px hsla(180,50%,50%,0.8);
}


                                                       Demo
CSS3 Backgrounds
• CSS3 Backgrounds
 • Multiple background images per element
 • Comma separated values




div{
    background-image: url("images/1.jpg"),
    url("images/2.jpg"), url("images/3.jpg");
    background-position: 90px 90px,
    60px 60px, 30px 30px;
}




                                                Demo
WOFF Fonts & @font-face
 • No longer limited to the “web safe” font list!
 • WOFFs cannot be used outside of page context
 • Web Open Font Format allows you to package and deliver fonts as
   needed
  • Designed for web use with the @font-face declaration
  • A simple repackaging of OpenType or TrueType font data
 • Source from WOFF Font Subscription Services
<style type="text/css">
  @font-face {
   font-family:MyFontName;
   src: url('FontFile.woff');
 }
</style>                                                     Demo
<div style="font: 24pt MyFontName, sans-serif;">
 This will render using MyFontName in FontFile.woff
</div>
                                                                     24
CSS3 Media Queries
• Selectively style page based on properties of the display media




<link href=“mobile.css" rel="stylesheet"
  media="screen and (max-width:480px)" type="text/css"/>

<link href=“netbook.css" rel="stylesheet"
  media="screen and (min-width:481px) and (max-
  width: 1024px)" type="text/css" />                       Demo
<link href=“laptop.css" rel="stylesheet"
  media="screen and (min-width:1025px)" type="text/css" />



                                                                    25
CSS Selectors
• Dynamic Styling
• Style elements based on parameters such as:
 • Pattern matching: rounded borders for all jpg images
 • Element location: 1st paragraph
• Many kinds of selectors:
 • Type selectors: all H1 elements
 • Attribute selectors: all autoplay videos




                                                          Demo
CSS3 2D Transforms
• CSS3 2D Transforms
 •   Matrix
 •   Translate
 •   Scale
 •   Rotate
 •   Skew




div {
  -ms-transform: scale(2, 2) rotate(30deg);
}                                             Demo

                                                     27
DEMO
Turning things around
Bringing it all together
“HTML5”
• What we saw
 • <Audio>, <Video>, SVG, <Canvas>, Geolocation, CSS
• What we didn’t get to
QUIZ
How to make money with IE9?




Watch for IE9…
Resources
  •   www.w3c.org
  •   www.beautyoftheweb.in
  •   www.ietestdrive.com
  •   www.html5labs.com

Contenu connexe

Tendances

WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)Shumpei Shiraishi
 
HTML5 Essential Training
HTML5 Essential TrainingHTML5 Essential Training
HTML5 Essential TrainingKaloyan Kosev
 
SVG For Web Designers (and Developers)
SVG For Web Designers (and Developers) SVG For Web Designers (and Developers)
SVG For Web Designers (and Developers) Sara Soueidan
 
HTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web DevelopmentHTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web DevelopmentTilak Joshi
 
Vector Graphics on the Web: SVG, Canvas, CSS3
Vector Graphics on the Web: SVG, Canvas, CSS3Vector Graphics on the Web: SVG, Canvas, CSS3
Vector Graphics on the Web: SVG, Canvas, CSS3Pascal Rettig
 
Thats Not Flash?
Thats Not Flash?Thats Not Flash?
Thats Not Flash?Mike Wilcox
 
Using Web Standards to create Interactive Data Visualizations for the Web
Using Web Standards to create Interactive Data Visualizations for the WebUsing Web Standards to create Interactive Data Visualizations for the Web
Using Web Standards to create Interactive Data Visualizations for the Webphilogb
 
Sara Soueidan: Styling and Animating Scalable Vector Graphics with CSS [CSSCo...
Sara Soueidan: Styling and Animating Scalable Vector Graphics with CSS [CSSCo...Sara Soueidan: Styling and Animating Scalable Vector Graphics with CSS [CSSCo...
Sara Soueidan: Styling and Animating Scalable Vector Graphics with CSS [CSSCo...Guillaume Kossi
 
Rockstar Graphics with HTML5
Rockstar Graphics with HTML5Rockstar Graphics with HTML5
Rockstar Graphics with HTML5Dave Balmer
 
Comparing XAML and HTML: FIGHT!
Comparing XAML and HTML: FIGHT!Comparing XAML and HTML: FIGHT!
Comparing XAML and HTML: FIGHT!Gill Cleeren
 
SVG (Devoxx 2011, 2011-NOV-14)
SVG (Devoxx 2011, 2011-NOV-14)SVG (Devoxx 2011, 2011-NOV-14)
SVG (Devoxx 2011, 2011-NOV-14)Filip Van Laenen
 
CSS3: Ripe and Ready
CSS3: Ripe and ReadyCSS3: Ripe and Ready
CSS3: Ripe and ReadyDenise Jacobs
 
Simply Responsive CSS3
Simply Responsive CSS3Simply Responsive CSS3
Simply Responsive CSS3Denise Jacobs
 
Dynamic User Interfaces for Desktop and Mobile
Dynamic User Interfaces for Desktop and MobileDynamic User Interfaces for Desktop and Mobile
Dynamic User Interfaces for Desktop and Mobilepeychevi
 
DojoX GFX Keynote Eugene Lazutkin SVG Open 2007
DojoX GFX Keynote Eugene Lazutkin SVG Open 2007DojoX GFX Keynote Eugene Lazutkin SVG Open 2007
DojoX GFX Keynote Eugene Lazutkin SVG Open 2007Eugene Lazutkin
 

Tendances (20)

Svcc 2013-css3-and-mobile
Svcc 2013-css3-and-mobileSvcc 2013-css3-and-mobile
Svcc 2013-css3-and-mobile
 
WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)
 
HTML5 Essential Training
HTML5 Essential TrainingHTML5 Essential Training
HTML5 Essential Training
 
SVG For Web Designers (and Developers)
SVG For Web Designers (and Developers) SVG For Web Designers (and Developers)
SVG For Web Designers (and Developers)
 
HTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web DevelopmentHTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web Development
 
Vector Graphics on the Web: SVG, Canvas, CSS3
Vector Graphics on the Web: SVG, Canvas, CSS3Vector Graphics on the Web: SVG, Canvas, CSS3
Vector Graphics on the Web: SVG, Canvas, CSS3
 
Thats Not Flash?
Thats Not Flash?Thats Not Flash?
Thats Not Flash?
 
Using Web Standards to create Interactive Data Visualizations for the Web
Using Web Standards to create Interactive Data Visualizations for the WebUsing Web Standards to create Interactive Data Visualizations for the Web
Using Web Standards to create Interactive Data Visualizations for the Web
 
Sara Soueidan: Styling and Animating Scalable Vector Graphics with CSS [CSSCo...
Sara Soueidan: Styling and Animating Scalable Vector Graphics with CSS [CSSCo...Sara Soueidan: Styling and Animating Scalable Vector Graphics with CSS [CSSCo...
Sara Soueidan: Styling and Animating Scalable Vector Graphics with CSS [CSSCo...
 
Learn svg
Learn svgLearn svg
Learn svg
 
Rockstar Graphics with HTML5
Rockstar Graphics with HTML5Rockstar Graphics with HTML5
Rockstar Graphics with HTML5
 
HTML5: Introduction
HTML5: IntroductionHTML5: Introduction
HTML5: Introduction
 
Comparing XAML and HTML: FIGHT!
Comparing XAML and HTML: FIGHT!Comparing XAML and HTML: FIGHT!
Comparing XAML and HTML: FIGHT!
 
SVG (Devoxx 2011, 2011-NOV-14)
SVG (Devoxx 2011, 2011-NOV-14)SVG (Devoxx 2011, 2011-NOV-14)
SVG (Devoxx 2011, 2011-NOV-14)
 
Flash And Dom
Flash And DomFlash And Dom
Flash And Dom
 
CSS3: Ripe and Ready
CSS3: Ripe and ReadyCSS3: Ripe and Ready
CSS3: Ripe and Ready
 
Simply Responsive CSS3
Simply Responsive CSS3Simply Responsive CSS3
Simply Responsive CSS3
 
Drupal Backbone.js in the Frontend
Drupal Backbone.js in the FrontendDrupal Backbone.js in the Frontend
Drupal Backbone.js in the Frontend
 
Dynamic User Interfaces for Desktop and Mobile
Dynamic User Interfaces for Desktop and MobileDynamic User Interfaces for Desktop and Mobile
Dynamic User Interfaces for Desktop and Mobile
 
DojoX GFX Keynote Eugene Lazutkin SVG Open 2007
DojoX GFX Keynote Eugene Lazutkin SVG Open 2007DojoX GFX Keynote Eugene Lazutkin SVG Open 2007
DojoX GFX Keynote Eugene Lazutkin SVG Open 2007
 

En vedette

Richmond PLN.Feb 2016
Richmond PLN.Feb 2016Richmond PLN.Feb 2016
Richmond PLN.Feb 2016Faye Brownlie
 
Suvorov seoquaketeam
Suvorov   seoquaketeamSuvorov   seoquaketeam
Suvorov seoquaketeamAnna
 
Research from Policy Lever 5 of Starting Strong III - 10th Meeting of the OEC...
Research from Policy Lever 5 of Starting Strong III - 10th Meeting of the OEC...Research from Policy Lever 5 of Starting Strong III - 10th Meeting of the OEC...
Research from Policy Lever 5 of Starting Strong III - 10th Meeting of the OEC...EduSkills OECD
 
Quality education for all –UNESCAP/LCD Conference on Disability-inclusive MDG...
Quality education for all –UNESCAP/LCD Conference on Disability-inclusive MDG...Quality education for all –UNESCAP/LCD Conference on Disability-inclusive MDG...
Quality education for all –UNESCAP/LCD Conference on Disability-inclusive MDG...EduSkills OECD
 
Globalisation and quality equity inclusive education tchombe
Globalisation and quality equity inclusive education tchombeGlobalisation and quality equity inclusive education tchombe
Globalisation and quality equity inclusive education tchombeabdelcris
 
Complexity: the case of development interventions aimed at changing instituti...
Complexity: the case of development interventions aimed at changing instituti...Complexity: the case of development interventions aimed at changing instituti...
Complexity: the case of development interventions aimed at changing instituti...EduSkills OECD
 

En vedette (6)

Richmond PLN.Feb 2016
Richmond PLN.Feb 2016Richmond PLN.Feb 2016
Richmond PLN.Feb 2016
 
Suvorov seoquaketeam
Suvorov   seoquaketeamSuvorov   seoquaketeam
Suvorov seoquaketeam
 
Research from Policy Lever 5 of Starting Strong III - 10th Meeting of the OEC...
Research from Policy Lever 5 of Starting Strong III - 10th Meeting of the OEC...Research from Policy Lever 5 of Starting Strong III - 10th Meeting of the OEC...
Research from Policy Lever 5 of Starting Strong III - 10th Meeting of the OEC...
 
Quality education for all –UNESCAP/LCD Conference on Disability-inclusive MDG...
Quality education for all –UNESCAP/LCD Conference on Disability-inclusive MDG...Quality education for all –UNESCAP/LCD Conference on Disability-inclusive MDG...
Quality education for all –UNESCAP/LCD Conference on Disability-inclusive MDG...
 
Globalisation and quality equity inclusive education tchombe
Globalisation and quality equity inclusive education tchombeGlobalisation and quality equity inclusive education tchombe
Globalisation and quality equity inclusive education tchombe
 
Complexity: the case of development interventions aimed at changing instituti...
Complexity: the case of development interventions aimed at changing instituti...Complexity: the case of development interventions aimed at changing instituti...
Complexity: the case of development interventions aimed at changing instituti...
 

Similaire à Html5 more than just html5 v final

Wordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The NextwebWordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The NextwebGeorge Kanellopoulos
 
Html5 Whats around the bend
Html5 Whats around the bendHtml5 Whats around the bend
Html5 Whats around the bendRaj Lal
 
WordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebWordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebGeorge Kanellopoulos
 
HTML5: An Overview
HTML5: An OverviewHTML5: An Overview
HTML5: An OverviewNagendra Um
 
[2015/2016] HTML5 and CSS3 Refresher
[2015/2016] HTML5 and CSS3 Refresher[2015/2016] HTML5 and CSS3 Refresher
[2015/2016] HTML5 and CSS3 RefresherIvano Malavolta
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Sadaaki HIRAI
 
Trendsetting: Web Design and Beyond
Trendsetting: Web Design and BeyondTrendsetting: Web Design and Beyond
Trendsetting: Web Design and BeyondAndy Stratton
 
Rich and Beautiful: Making Attractive Apps in HTML5 [Wpg 2013]
Rich and Beautiful: Making Attractive Apps in HTML5 [Wpg 2013]Rich and Beautiful: Making Attractive Apps in HTML5 [Wpg 2013]
Rich and Beautiful: Making Attractive Apps in HTML5 [Wpg 2013]David Wesst
 
Talk Paris Infovis 091207132953 Phpapp01(2)
Talk Paris Infovis 091207132953 Phpapp01(2)Talk Paris Infovis 091207132953 Phpapp01(2)
Talk Paris Infovis 091207132953 Phpapp01(2)johnnybiz
 
Ease into HTML5 and CSS3
Ease into HTML5 and CSS3Ease into HTML5 and CSS3
Ease into HTML5 and CSS3Brian Moon
 
Dive Into HTML5
Dive Into HTML5Dive Into HTML5
Dive Into HTML5Doris Chen
 
CSS3: Are you experienced?
CSS3: Are you experienced?CSS3: Are you experienced?
CSS3: Are you experienced?Denise Jacobs
 
VizEx View HTML5 Workshop
VizEx View HTML5 WorkshopVizEx View HTML5 Workshop
VizEx View HTML5 WorkshopDavid Manock
 
HTML5 & Friends
HTML5 & FriendsHTML5 & Friends
HTML5 & FriendsRemy Sharp
 
HTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile appsHTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile appsIvano Malavolta
 

Similaire à Html5 more than just html5 v final (20)

Wordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The NextwebWordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The Nextweb
 
Html5 Whats around the bend
Html5 Whats around the bendHtml5 Whats around the bend
Html5 Whats around the bend
 
WordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebWordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWeb
 
Word camp nextweb
Word camp nextwebWord camp nextweb
Word camp nextweb
 
Word camp nextweb
Word camp nextwebWord camp nextweb
Word camp nextweb
 
HTML5: An Overview
HTML5: An OverviewHTML5: An Overview
HTML5: An Overview
 
Silverlight 5
Silverlight 5Silverlight 5
Silverlight 5
 
[2015/2016] HTML5 and CSS3 Refresher
[2015/2016] HTML5 and CSS3 Refresher[2015/2016] HTML5 and CSS3 Refresher
[2015/2016] HTML5 and CSS3 Refresher
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
 
Trendsetting: Web Design and Beyond
Trendsetting: Web Design and BeyondTrendsetting: Web Design and Beyond
Trendsetting: Web Design and Beyond
 
Rich and Beautiful: Making Attractive Apps in HTML5 [Wpg 2013]
Rich and Beautiful: Making Attractive Apps in HTML5 [Wpg 2013]Rich and Beautiful: Making Attractive Apps in HTML5 [Wpg 2013]
Rich and Beautiful: Making Attractive Apps in HTML5 [Wpg 2013]
 
Talk Paris Infovis 091207132953 Phpapp01(2)
Talk Paris Infovis 091207132953 Phpapp01(2)Talk Paris Infovis 091207132953 Phpapp01(2)
Talk Paris Infovis 091207132953 Phpapp01(2)
 
Ease into HTML5 and CSS3
Ease into HTML5 and CSS3Ease into HTML5 and CSS3
Ease into HTML5 and CSS3
 
Intro to CSS3
Intro to CSS3Intro to CSS3
Intro to CSS3
 
Dive Into HTML5
Dive Into HTML5Dive Into HTML5
Dive Into HTML5
 
CSS3: Are you experienced?
CSS3: Are you experienced?CSS3: Are you experienced?
CSS3: Are you experienced?
 
VizEx View HTML5 Workshop
VizEx View HTML5 WorkshopVizEx View HTML5 Workshop
VizEx View HTML5 Workshop
 
VizEx View HTML5 Workshop
VizEx View HTML5 WorkshopVizEx View HTML5 Workshop
VizEx View HTML5 Workshop
 
HTML5 & Friends
HTML5 & FriendsHTML5 & Friends
HTML5 & Friends
 
HTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile appsHTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile apps
 

Plus de Lohith Goudagere Nagaraj

Hybrid Mobile App Development With Cordova
Hybrid Mobile App Development With CordovaHybrid Mobile App Development With Cordova
Hybrid Mobile App Development With CordovaLohith Goudagere Nagaraj
 
Even Quicker Development with Xamarin Forms Using Telerik UI for Xamarin
Even Quicker Development with Xamarin Forms Using Telerik UI for XamarinEven Quicker Development with Xamarin Forms Using Telerik UI for Xamarin
Even Quicker Development with Xamarin Forms Using Telerik UI for XamarinLohith Goudagere Nagaraj
 
You Know Angular 2, You Know Native Mobile App Development
You Know Angular 2, You Know Native Mobile App DevelopmentYou Know Angular 2, You Know Native Mobile App Development
You Know Angular 2, You Know Native Mobile App DevelopmentLohith Goudagere Nagaraj
 
Connecting your .Net Applications to NoSQL Databases - MongoDB & Cassandra
Connecting your .Net Applications to NoSQL Databases - MongoDB & CassandraConnecting your .Net Applications to NoSQL Databases - MongoDB & Cassandra
Connecting your .Net Applications to NoSQL Databases - MongoDB & CassandraLohith Goudagere Nagaraj
 
Seamless Access to Data from BI Tools using DataDirect Cloud
Seamless Access to Data from BI Tools using DataDirect CloudSeamless Access to Data from BI Tools using DataDirect Cloud
Seamless Access to Data from BI Tools using DataDirect CloudLohith Goudagere Nagaraj
 
The Bleeding Edge - Whats New in Angular 2
The Bleeding Edge - Whats New in Angular 2The Bleeding Edge - Whats New in Angular 2
The Bleeding Edge - Whats New in Angular 2Lohith Goudagere Nagaraj
 
Introduction to UWP - Universal Windows Platform Application Development
Introduction to UWP - Universal Windows Platform Application DevelopmentIntroduction to UWP - Universal Windows Platform Application Development
Introduction to UWP - Universal Windows Platform Application DevelopmentLohith Goudagere Nagaraj
 
Cross Platform Web Applications Using ASP.NET Core 1.0
Cross Platform Web Applications Using ASP.NET Core 1.0Cross Platform Web Applications Using ASP.NET Core 1.0
Cross Platform Web Applications Using ASP.NET Core 1.0Lohith Goudagere Nagaraj
 
Build Leaner, Faster Web Applications with ASP.NET
Build Leaner, Faster Web Applications with  ASP.NETBuild Leaner, Faster Web Applications with  ASP.NET
Build Leaner, Faster Web Applications with ASP.NETLohith Goudagere Nagaraj
 
Online Spreadsheet for your Web Applications using Kendo UI
Online Spreadsheet for your Web Applications using Kendo UIOnline Spreadsheet for your Web Applications using Kendo UI
Online Spreadsheet for your Web Applications using Kendo UILohith Goudagere Nagaraj
 
New Enterprisre Capabilities in Telerik Platform
New Enterprisre Capabilities in Telerik PlatformNew Enterprisre Capabilities in Telerik Platform
New Enterprisre Capabilities in Telerik PlatformLohith Goudagere Nagaraj
 

Plus de Lohith Goudagere Nagaraj (20)

Porting Hybrid Apps to Native Apps
Porting Hybrid Apps to Native AppsPorting Hybrid Apps to Native Apps
Porting Hybrid Apps to Native Apps
 
Hybrid Mobile App Development With Cordova
Hybrid Mobile App Development With CordovaHybrid Mobile App Development With Cordova
Hybrid Mobile App Development With Cordova
 
Building Web Apps & APIs With Node JS
Building Web Apps & APIs With Node JSBuilding Web Apps & APIs With Node JS
Building Web Apps & APIs With Node JS
 
Even Quicker Development with Xamarin Forms Using Telerik UI for Xamarin
Even Quicker Development with Xamarin Forms Using Telerik UI for XamarinEven Quicker Development with Xamarin Forms Using Telerik UI for Xamarin
Even Quicker Development with Xamarin Forms Using Telerik UI for Xamarin
 
You Know Angular 2, You Know Native Mobile App Development
You Know Angular 2, You Know Native Mobile App DevelopmentYou Know Angular 2, You Know Native Mobile App Development
You Know Angular 2, You Know Native Mobile App Development
 
Connecting your .Net Applications to NoSQL Databases - MongoDB & Cassandra
Connecting your .Net Applications to NoSQL Databases - MongoDB & CassandraConnecting your .Net Applications to NoSQL Databases - MongoDB & Cassandra
Connecting your .Net Applications to NoSQL Databases - MongoDB & Cassandra
 
Angular JS 2.0 & React with Kendo UI
Angular JS 2.0 & React with Kendo UIAngular JS 2.0 & React with Kendo UI
Angular JS 2.0 & React with Kendo UI
 
Kendo UI Wrappers in ASP.NET Core
Kendo UI Wrappers in ASP.NET CoreKendo UI Wrappers in ASP.NET Core
Kendo UI Wrappers in ASP.NET Core
 
Seamless Access to Data from BI Tools using DataDirect Cloud
Seamless Access to Data from BI Tools using DataDirect CloudSeamless Access to Data from BI Tools using DataDirect Cloud
Seamless Access to Data from BI Tools using DataDirect Cloud
 
The Bleeding Edge - Whats New in Angular 2
The Bleeding Edge - Whats New in Angular 2The Bleeding Edge - Whats New in Angular 2
The Bleeding Edge - Whats New in Angular 2
 
Introduction to UWP - Universal Windows Platform Application Development
Introduction to UWP - Universal Windows Platform Application DevelopmentIntroduction to UWP - Universal Windows Platform Application Development
Introduction to UWP - Universal Windows Platform Application Development
 
Cross Platform Web Applications Using ASP.NET Core 1.0
Cross Platform Web Applications Using ASP.NET Core 1.0Cross Platform Web Applications Using ASP.NET Core 1.0
Cross Platform Web Applications Using ASP.NET Core 1.0
 
Build Leaner, Faster Web Applications with ASP.NET
Build Leaner, Faster Web Applications with  ASP.NETBuild Leaner, Faster Web Applications with  ASP.NET
Build Leaner, Faster Web Applications with ASP.NET
 
JavaScript Task Runners - Gulp & Grunt
JavaScript Task Runners - Gulp & GruntJavaScript Task Runners - Gulp & Grunt
JavaScript Task Runners - Gulp & Grunt
 
Visual Studio 2015 - Whats New ?
Visual Studio 2015 - Whats New ?Visual Studio 2015 - Whats New ?
Visual Studio 2015 - Whats New ?
 
Introduction to React JS
Introduction to React JSIntroduction to React JS
Introduction to React JS
 
Online Spreadsheet for your Web Applications using Kendo UI
Online Spreadsheet for your Web Applications using Kendo UIOnline Spreadsheet for your Web Applications using Kendo UI
Online Spreadsheet for your Web Applications using Kendo UI
 
NativeScript + Push Notifications
NativeScript + Push NotificationsNativeScript + Push Notifications
NativeScript + Push Notifications
 
10 Useful New Features of ECMA Script 6
10 Useful New Features of ECMA Script 610 Useful New Features of ECMA Script 6
10 Useful New Features of ECMA Script 6
 
New Enterprisre Capabilities in Telerik Platform
New Enterprisre Capabilities in Telerik PlatformNew Enterprisre Capabilities in Telerik Platform
New Enterprisre Capabilities in Telerik Platform
 

Dernier

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 

Dernier (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

Html5 more than just html5 v final

  • 1.
  • 2. "HTML5” – More than just HTML5 Lohith G N
  • 3. About Me… - Mysorian, Working in Bangalore - B.E. – I & P, 10 years of experience - Microsoft MVP 2K11 – ASP.NET/IIS - Telerik Insider – Speakers sponsored by Telerik - Bangalore DotNet User Group Member
  • 4. WHATWG: HTML is the new HTML5!
  • 5. What is “HTML5”? HTML5 is... • the future of the web • still under development • a huge spec, and testing isn’t binary HTML5 is not ... • “How To Meet Ladies” version 5 (Credit: @hackatac) • Just a marketing message
  • 7. Specification lifecycle Candidate Proposed First Public Recommendati Working Draft Recommendati Recommendati Working Draft on on on Last Call to call implement
  • 8. W3C HTML5 Specification • ~1200 print pages • Issue Tracker: ~37 open • Bug Tracker: ~208 open • Mailing list: ~4000 emails/month www.w3.org/TR/html5
  • 9. The map of “HTML5” Candidate First Public Recommendati Working Draft Last Call Recommendati Working Draft on on
  • 10. A whirlwind tour of “HTML5”
  • 11. <!DOCTYPE.. • From: • HTML 4.01 Strict/Transitional/Frameset • XHTML 1.0 Strict/Transitional/Frameset <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> • To • HTML5 <!DOCTYPE html>
  • 12. <video> • Support for the HTML5 <video> element • Industry-standard MPEG-4/H.264 video • Video can be composited with anything else on the page • HTML content, images, SVG graphics • Hardware accelerated, GPU-based decoding • Supports fallback to different formats (mp4, webm) as well as Flash/Silverlight <video id="myVideo" controls> <source src="videos/video.mp4" type="video/mp4"/> <!–- insert sorry message here or fall back to SL/Flash --> <object type="application/x-silverlight-2"> <param name="source" value="player.xap"> </object> </video> Demo
  • 13. <audio> • Add audio content to page with native playback, events & controls • Relies on browser features • Supports fallback to different formats (mp3, aac) <audio src="audio.mp3" id="audioTag" autoplay controls> <!-- Only shown when browser doesn’t support audio --> <!-- You could embed Flash or Silverlight audio here --> </audio>
  • 14. SVG Basics XML-based • Scriptable, extensible, easily editable • Easy to apply CSS styles Vector graphics • Resizable without degradation • Vector images are composed of shapes instead of pixels Compression • Fast download Easy debugging • It is just XML!
  • 15. Scalable Vector Graphics (SVG) • Support for: • Full DOM access to SVG elements • Document structure, scripting, styling, paths, shapes, colors, transforms, gradients, patterns, masking, clipping, markers, linking and views <svg width="400" height="200" xmlns="http://www.w3.org/2000/svg"> <rect fill="red" x="20" y="20" width="100" height="75" /> <rect fill="blue" x="50" y="50" width="100" height="75" /> </svg> Demo
  • 16. Canvas • A block element that allows developers to draw 2d graphics using JavaScript • Methods for drawing include: paths, boxes, circles, text and rasterized images <canvas id="myCanvas" width="200" height="200"> Your browser doesn’t support Canvas, sorry. </canvas> <script type="text/javascript"> var example = document.getElementById("myCanvas"); var context = example.getContext("2d"); context.fillStyle = "rgb(255,0,0)"; context.fillRect(30, 30, 50, 50); Demo </script> 16
  • 17. SVG or Canvas Characteristi SVG Canvas c When to use Highly detailed drawing, charts Programmatic rendering, games Drawing Mode By Runtime By Application DOM Support Each SVG element part of <CANVAS> part of the DOM DOM Animation Manipulating objects in the Using direct scripting in canvas DOM GPU Yes Yes acceleration Performance Best for larger surface and/or Best for smaller surface and/or small # of objects large # of objects Modification Tag, Script & CSS Script only
  • 18. GeoLocation • Let websites use your location information to improve their services • Requires users consent • Navigator.geolocation.getCurrentPosition(); • Navigator.geolocation.watchPosition(); • Resolution via IP reverse lookup / Wi-Fi triangulation function getLocation() { if (navigator.getlocation != undefined) { navigator.getlocation.getCurrentPosition(callBack); } } function callBack(position) { var accuracy = position.coords[“accuracy”]; //in meters var latitude = position.coords[“latitude”]; var longitude = position.coords[“longitude”]; Demo } 18
  • 19. CSS3 • 2nd largest spec in “HTML5” • Major revision to CSS 2.1 • CSS 3 • Borders & Colors • Backgrounds & Shadows • WOFF • Media queries • Selectors • Transforms
  • 20. CSS3 Borders • CSS3 Borders • Rounded corners with the border-radius property div.top { border-radius: 152px 304px 228px 152px; border-style: double; border-width: 42px; padding: 12px; }
  • 21. CSS3 Colors • CSS3 Colors & Transparency • Alpha color with rgba() and hsla() color functions • Transparency control with the opacity property • Full support for CSS3 color keywords div.top { background-color: rgba(155,0,155,0.5) } div.bottom { background-color: hsla(0,100%,50%,0.2); }
  • 22. CSS3 Shadows • CSS3 Shadows • box-shadow property on block elements • Inset & Multiple shadows div{… box-shadow: 20px 20px 20px hsla(0,100%,50%,0.2); } div{… box-shadow: 20px 20px 20px hsla(0,100%,50%,0.2), -20px -20px 20px hsla(180,50%,50%,0.8); } Demo
  • 23. CSS3 Backgrounds • CSS3 Backgrounds • Multiple background images per element • Comma separated values div{ background-image: url("images/1.jpg"), url("images/2.jpg"), url("images/3.jpg"); background-position: 90px 90px, 60px 60px, 30px 30px; } Demo
  • 24. WOFF Fonts & @font-face • No longer limited to the “web safe” font list! • WOFFs cannot be used outside of page context • Web Open Font Format allows you to package and deliver fonts as needed • Designed for web use with the @font-face declaration • A simple repackaging of OpenType or TrueType font data • Source from WOFF Font Subscription Services <style type="text/css"> @font-face { font-family:MyFontName; src: url('FontFile.woff'); } </style> Demo <div style="font: 24pt MyFontName, sans-serif;"> This will render using MyFontName in FontFile.woff </div> 24
  • 25. CSS3 Media Queries • Selectively style page based on properties of the display media <link href=“mobile.css" rel="stylesheet" media="screen and (max-width:480px)" type="text/css"/> <link href=“netbook.css" rel="stylesheet" media="screen and (min-width:481px) and (max- width: 1024px)" type="text/css" /> Demo <link href=“laptop.css" rel="stylesheet" media="screen and (min-width:1025px)" type="text/css" /> 25
  • 26. CSS Selectors • Dynamic Styling • Style elements based on parameters such as: • Pattern matching: rounded borders for all jpg images • Element location: 1st paragraph • Many kinds of selectors: • Type selectors: all H1 elements • Attribute selectors: all autoplay videos Demo
  • 27. CSS3 2D Transforms • CSS3 2D Transforms • Matrix • Translate • Scale • Rotate • Skew div { -ms-transform: scale(2, 2) rotate(30deg); } Demo 27
  • 29. “HTML5” • What we saw • <Audio>, <Video>, SVG, <Canvas>, Geolocation, CSS • What we didn’t get to
  • 30. QUIZ
  • 31. How to make money with IE9? Watch for IE9…
  • 32. Resources • www.w3c.org • www.beautyoftheweb.in • www.ietestdrive.com • www.html5labs.com

Notes de l'éditeur

  1. 18-Jan: W3C announces the new HTML5 logo19-Jan: WHATWG, focused on some of the key Web Apps specs announces that HTML is the new HTML5 and that HTML5 spec is a living document and hence no version numbers are required.
  2. One of the most anticipated HTML5 features is the &lt;video&gt; tag. Now with Internet Explorer 9, developers can now include video on their page without having to resort to Flash or Silverlight. Just like you’d include an &lt;img&gt; tag on your page, you can include video in the same manner. Internet Explorer 9 supports videos encoded with the industry standard H.264 video codec. It’s the same video codec used by YouTube and many other sites as the primary video format. Most devices that record video, like point and shoot cameras encode with the H.264 codec, making it super easy for folks to put video on the web. Because Internet Explorer 9 uses the GPU to decode the video instead of the CPU, the performance is fantastic.
  3. Like the HTML5 &lt;video&gt; element, the &lt;audio&gt; element allows designers and developers to embed sounds on their sites without having to rely on Flash or Silverlight. The &lt;audio&gt; tag supports industry standard codecs like MP3 and AAC. In the same way the &lt;video&gt; element is scriptable, so is the &lt;audio&gt; tag, allowing you to script the object.
  4. Scalable Vector Graphics (SVG) are a graphics format that describe vector graphics with an XML-based file format. Unlike rasterized images, instead of drawing individual pixels on a page, vector graphics render based on the shapes defined in the XML file. Because they’re based on shapes instead of pixels, there’s no limit to how they can be zoomed in, there isn’t a loss because of a lack of pixel depth. And since they’re just XML files, they can be included right in your HTML, like you would any other HTML element, and are treated by the browser just like any other HTML element – they’re fully accessible via the DOM and can be scripted and modified as you want.SVG drawings work really well for organizational charts, simple images and line drawings. For example, a flow chart, or business organizational chart. The code on this page shows a very simple example, in our HTML I’ve placed an SVG element, 400 pixels wide by 200 pixels high. Within that SVG element, we’ve drawn two shapes, both rectangles. Almost all browsers today support the basic shapes like rectangles, circles, polygons; as well as paths, colors, gradients, patterns and more.
  5. The &lt;canvas&gt; element is a part of the HTML5 Standards specification and allows for dynamic scriptable rendering of 2D graphics. The &lt;canvas&gt; element in your HTML defines the drawing area, then through JavaScript, you can get the 2d context and begin dynamically drawing within that region.Much like SVG, you can draw on the page using basic shapes, but you can also easily include rasterized images, videos and other objects. One question that sometimes comes up is the difference between canvas and SVG. The biggest and most important is that with SVG, the drawings are objects within the DOM, where as with canvas, the browser doesn’t remember what’s been drawn and therefore to update the graphic JavaScript needs to redraw the full canvas, instead of just updating the existing object.Demo From IETestDrive.comhttp://iepm/testdrive/Graphics/CanvasPad/http://iepm/testdrive/Performance/FishIE%20tank/http://iepm/testdrive/Performance/MrPotatoGun/http://iepm/testdrive/Performance/AsteroidBelt/http://iepm/testdrive/Graphics/DeepZoom/
  6. With support for geolocation, Internet Explorer 9 RC enables a web application to access the current geographical location of the PC running Internet Explorer, as specified in the Geolocation API specification. The webpage can then tailor the user experience according to location.
  7. Internet Explorer 9 adds support for several features of the CSS3 Backgrounds and Borders Module. The most notable new feature, the border-radius properties, is also the most requested CSS border feature.The border-radius properties enable you to curve border corners by essentially “replacing” the hard corners with a quarter-ellipse and specifying the radii of each ellipse.
  8. CSS3 adds several new ways of defining the opacity of elements, including the opacity CSS property, but also the ability to set the alpha-transparency value when defining colors with the RGBA or HSLA color model. The RGBA color model allows you to specify the amount of red, green and blue as 0-255 values, with the final parameter being the transparency of the element. The alpha transparency value ranges from zero to one, with zero being completely transparent, and one being fully opaque. If you set the alpha transparency to 0.5, the object will allow 50% of the background through. Some designers and developers grew up and are more confortable with the HSLA color model, which is a little different. HSLA stands for hue, saturation, light and alpha transparency. The hue is represented as a color wheel with a value of 0 to 360, where red is 0 (or 360), green is 120, and blue is 240. For example, a pure purple would be 300 (in between the red and the blue). The saturation value, represented as a precentage defines how strong the color is. Lightness defines the how “bright” the color is – where 0% is black, and 100% is pure white. At 50%, the color is at it’s “normal” color.Demo From IETestDrive.com-None-
  9. Internet Explorer 9 adds support for several features of the CSS3 Backgrounds and Borders Module. The most notable new feature, the border-radius properties, is also the most requested CSS border feature.The border-radius properties enable you to curve border corners by essentially “replacing” the hard corners with a quarter-ellipse and specifying the radii of each ellipse.
  10. Internet Explorer 9 adds support for several features of the CSS3 Backgrounds and Borders Module. The most notable new feature, the border-radius properties, is also the most requested CSS border feature.The border-radius properties enable you to curve border corners by essentially “replacing” the hard corners with a quarter-ellipse and specifying the radii of each ellipse.
  11. Better typographic control has been a consistent feature of each new iteration of CSS. At the same time, the lack of an interoperable Web font format can be frustrating. Internet Explorer 9 enhances existing support for CSS fonts to provide compliance with the CSS3 Fonts Module. It also adds support for the Web Open Font Format (WOFF) and raw fonts. WOFF is backed by all of the major browser vendors and font foundries is a repackaging of the OpenType font format – for which there are many tools available to developers for packaging fonts today.No longer are designers and developers limited to the small list of web safe fonts. By using the @font-face, and specifying a source URL for the WOFF font file, the browser downloads the necessary font and uses it as the page designer specifies. Demo From IETestDrive.comhttp://ie.microsoft.com/testdrive/Graphics/WebFonts/http://ie.microsoft.com/testdrive/Graphics/MoreWebFonts/
  12. The CSS3 Media Queries Module specifies methods to enable web developers to scope a style sheet to a set of precise device capabilities. For instance, you might want to design pages differently for users browsing on a mobile device (that has a tiny screen, limited color palette, low resolution, and so on) versus a netbook (that has a small screen, full color palette, high resolution, and so on) versus a standard computer (with a large screen, full color palette, high resolution, and so on). The full list of media properties supported by CSS3 media queries includes width, height, device-width, device-height, orientation, aspect-ratio, device-aspect-ratio, color, color-index, monochrome, and resolution.Demos From IETestDrive.comhttp://ie.microsoft.com/testdrive/HTML5/85CSS3_MediaQueries/Default.html
  13. 2D transforms in CSS allow for various transformation to be applied to elements, such as scaling or rotating. It is possible to apply one or many transforms to a single element. This allows for effects such as rotating text or images at an angle, and can be combined with transitions to apply interactive effects such as scaling up elements when the users interacts with them.