SlideShare a Scribd company logo
1 of 76
Download to read offline
HTML5
Everything changes...
HTML5 is awesome!
HTML 4

<h2>Título de un artículo</h2>
<p>
    <strong>Había una vez...<strong>
    un ninja que <em>estaba sólo</em>.
</p>
HTML5

<h2>Título de un artículo</h2>
<p>
    <strong>Había una vez...<strong>
    un ninja que <em>estaba sólo</em>.
</p>
HTML5

<h2>Título de un artículo</h2>
<p>
    <strong>Había una vez...<strong>
    un ninja que <em>estaba sólo</em>.
</p>
Thanks!
HTML5 is awesome!
HTML5


  HTML



   CSS



JavaScript
Collection of tools
• Semantics
• Offline & Storage
• Devices Access
• Connectivity
• Multimedia
• 3D, Graphics & Effects
• Performance & Integration
Semantics & Markup
Semantics
• More meaningful elements
• Better semantic tags and attributes
• Semantic structure
• Microdata / Microformats
• ARIA attributes
• New form types
• More simple and cool
Doctype
Doctype

• Switch the content into standards mode
• Prevent quirks mode
• Case-insensitive
<!DOCTYPE html PUBLIC"-/    /W3C/  /DTD XHTML 1.0
  Transitional//EN""http://www.w3.org/TR/xhtml1/
            DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC"-/    /W3C/  /DTD XHTML 1.0
  Transitional//EN""http://www.w3.org/TR/xhtml1/
            DTD/xhtml1-transitional.dtd">
<!DOCTYPE html>
Better semantic tags
HTML 4
HTML5
Custom data attribute
Custom data attribute
data-*
inside HTML elements
Parse them using JavaScript (getAttribute
method)
* = custom attributes: user, name, phone,
id, chico, meli, etc...
data-*




 <a id="CATEG:1039" href="/camaras">Cámaras</a>
data-*




 <a data-id="CATEG:1039" href="/camaras">Cámaras</a>
Mircrodata

• Semantic attributes and properties
• Search engines, Web crawlers, Browsers
• Provide a richer browsing experience for
  users
<p itemscope> I’m going to the <a itemprop="url"
href="http://www.saltercane.com/">Salter Cane</a> gig
<data itemprop="date" datetime="2010-07-18">next
week</data>. Excited!</p>
ARIA
ARIA attributes

• Improve the accessibility of RIAs
• JavaScript components
• Helps with dynamic content
• Semantic attributes and properties:
  • roles (tree, navigation, presentation)
  • properties (aria-selected, aria-hidden)
<a href=”/buy” role=”button”>Comprar</a>
<div role=”tooltip”>For Nerds, by Nerds</div>
Forms
New forms
• Semantic types and attributes
• Mobile compatibility
• Validation engine
• Custom patterns
• More control
<input type=”email”>   <input type=”tel”>
<input type=”date”>                   <input type=”range”>




                      <input type=”color”>
<input type=“text” placeholder=”Search Bookmarks and His”>




<input type=“text” required=“required”>
Offline & storage
Web Storage

• Local storage / Session storage
• IndexedDB
• Application Cache (offline apps)
Local Storage
• JavaScript API
• Cliente-side database
• Key-value notation (JSON)
• Stored in users browsers
• 5 MB (per domain)
• the data persists (after the browser is
  shutdown or the session is closed)
<ul id="tree1"
       role="tree"
       tabindex="0"
       aria-labelledby="label_1">
  <li role="treeitem" tabindex="-1" aria-
expanded="true">Fruits</li>
  <li role="group">
    <ul>
       <li role="treeitem" tabindex="-1">Oranges</li>
       <li role="treeitem" tabindex="-1">Pineapples</li>
       ...
    </ul>
  </li>
</ul>
Session Storage
       =
 Local Storage
Session Storage
               =
         Local Storage

limited to the time span where the current
window is open
once the window is shut will be invalid
IndexDB
IndexDB


• Web SQL database must die!
• Object Store
• http://www.html5rocks.com/en/
  tutorials/indexeddb/todo/
AppCache
AppCache
• Offline First
• Chache manifest (*.appcache => file)
• Load from local cache (HTML, CSS, JS
  and images)
• mimetype: text/cache-manifest
• 5MB (chrome = unlimitedStorage)
• window.applicationCache
<html manifest="chico.appcache">


CACHE MANIFEST
# v0.11

CACHE:
versions/latest/chico.css
versions/latest/jquery.js
versions/latest/chico.js
src/assets/ninja.png

NETWORK:
*
Device Access
Device Access
• Geolocation API
• Camera / Microphone
• Local Data (contacts and events)
• Device Orientation
• Device Motion
• Vibration
• Notification
Device Access
• Geolocation API
• Camera / Microphone
• Local Data (contacts and events)
• Device Orientation
• Device Motion
• Vibration
• Notification
Connectivity
Connectivity

• Web Sockets
• Server-sent events
• Real time
Web Sockets

• JavaScript API
• Real time connections
• Bi-directional communications
Who is using Web
        Sockets?

• Facebook (chat, notifications, comments)
• Gmail
• Twitter
Multimedia
Multimedia

• Video

• Audio
Who is using
          Multimedia?

• Youtube
• Vimeo
• GrooveShark
Video   Audio
3D, Graphics, Effects
3D, Graphics, Effects

• SVG
• Canvas
• WebGL
• CSS3 3D
SVG
• Scalable Vector Graphic
• Language for rich graphical content like
  as:
  • Pie charts,
  • Two-dimensional graphs
<svg id="svgelem" height="200" xmlns="http:/ /www.w3.org/2000/
svg">
! <circle id="redcircle" cx="50" cy="50" r="50" fill="red" />
</svg>
Canvas

• HTML Element
• Draw graphics (with JavaScript)
• Control every pixel
Canvas
WebGL
• Web-based Graphics Library
• Interactive 3D graphics
• Canvas 3D
• JavaScript API
WebGL

        http://helloracer.com/webgl/
Performance &
  Integration
Performance &
       Integration

• Web Workers
• XMLHttpRequest2
Web Workers

• JavaScript API
• Load JS file dynamically
• Process code in a background
• Multi JavaScript thread
XMLHttpRequest2

• Ajax
• Uploading progress events
 (progress tag)
• Working with files (file system api)
• FormData
• CORS (cross domain request)
CSS3
CSS3
• Transitions           Webfonts
                        Text wrapping
• Animations
                        Columns
• Transforms
                        Opacity
• Gradients
                        Backgrounds
• Rounded corners
                        CSS selectors
• Flexible Box Model    Shadows
• Multi-column
Transforms, Transitions and Animations




       http://leaverou.github.com/animatable/


       http://cubic-bezier.com/#.17,.67,.83,.67
Gradients



btn.primary
{
  background-image: linear-gradient(top, #BACDFF, #4055A5 3%, #283077);
}
Rounded corners



btn.primary
{
  border-radius: 5px;
}
CSS selectors


p:nth-child(3) { }


input:checked { }


p:first-of-type { }


p ~ ul { }
Thanks!

More Related Content

What's hot

Introduction to jQuery (Ajax Exp 2006)
Introduction to jQuery (Ajax Exp 2006)Introduction to jQuery (Ajax Exp 2006)
Introduction to jQuery (Ajax Exp 2006)
jeresig
 
HTML+JQuery by Rio
HTML+JQuery by RioHTML+JQuery by Rio
HTML+JQuery by Rio
Agate Studio
 

What's hot (20)

Quick start guide to java script frameworks for sharepoint apps spsbe-2015
Quick start guide to java script frameworks for sharepoint apps spsbe-2015Quick start guide to java script frameworks for sharepoint apps spsbe-2015
Quick start guide to java script frameworks for sharepoint apps spsbe-2015
 
TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單
 
Html5 Intro
Html5 IntroHtml5 Intro
Html5 Intro
 
WAI-ARIA is More Than Accessibility
WAI-ARIA is More Than AccessibilityWAI-ARIA is More Than Accessibility
WAI-ARIA is More Than Accessibility
 
Introduction to jQuery (Ajax Exp 2006)
Introduction to jQuery (Ajax Exp 2006)Introduction to jQuery (Ajax Exp 2006)
Introduction to jQuery (Ajax Exp 2006)
 
9 Months Web Development Diploma Course in North Delhi
9 Months Web Development Diploma Course in North Delhi9 Months Web Development Diploma Course in North Delhi
9 Months Web Development Diploma Course in North Delhi
 
HTML5 features & JavaScript APIs
HTML5 features & JavaScript APIsHTML5 features & JavaScript APIs
HTML5 features & JavaScript APIs
 
Html5 shubelal
Html5 shubelalHtml5 shubelal
Html5 shubelal
 
HTML+JQuery by Rio
HTML+JQuery by RioHTML+JQuery by Rio
HTML+JQuery by Rio
 
Client storage
Client storageClient storage
Client storage
 
2011 - SharePoint + jQuery
2011 - SharePoint + jQuery2011 - SharePoint + jQuery
2011 - SharePoint + jQuery
 
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
 
SPSNH 2014 - The SharePoint & jQueryGuide
SPSNH 2014 - The SharePoint & jQueryGuideSPSNH 2014 - The SharePoint & jQueryGuide
SPSNH 2014 - The SharePoint & jQueryGuide
 
Html5
Html5Html5
Html5
 
Search as main navigation
Search as main navigationSearch as main navigation
Search as main navigation
 
Html5 n css3
Html5 n css3Html5 n css3
Html5 n css3
 
Php course
Php coursePhp course
Php course
 
Scaling the Web: Databases & NoSQL
Scaling the Web: Databases & NoSQLScaling the Web: Databases & NoSQL
Scaling the Web: Databases & NoSQL
 
2022 HTML5: The future is now
2022 HTML5: The future is now2022 HTML5: The future is now
2022 HTML5: The future is now
 
Net online training
Net online trainingNet online training
Net online training
 

Similar to HTML5: Introduction

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
 

Similar to HTML5: Introduction (20)

HTML5: An Overview
HTML5: An OverviewHTML5: An Overview
HTML5: An Overview
 
Intro JavaScript
Intro JavaScriptIntro JavaScript
Intro JavaScript
 
Html5 Whats around the bend
Html5 Whats around the bendHtml5 Whats around the bend
Html5 Whats around the bend
 
About Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JSAbout Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JS
 
In-browser storage and me
In-browser storage and meIn-browser storage and me
In-browser storage and me
 
Notes on SF W3Conf
Notes on SF W3ConfNotes on SF W3Conf
Notes on SF W3Conf
 
Advanced guide to develop ajax applications using dojo
Advanced guide to develop ajax applications using dojoAdvanced guide to develop ajax applications using dojo
Advanced guide to develop ajax applications using dojo
 
Html5 more than just html5 v final
Html5  more than just html5 v finalHtml5  more than just html5 v final
Html5 more than just html5 v final
 
HTML5, just another presentation :)
HTML5, just another presentation :)HTML5, just another presentation :)
HTML5, just another presentation :)
 
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)
 
web development
web developmentweb development
web development
 
Html5 Brown Bag
Html5 Brown BagHtml5 Brown Bag
Html5 Brown Bag
 
HTML5 & Friends
HTML5 & FriendsHTML5 & Friends
HTML5 & Friends
 
Modern Web Development
Modern Web DevelopmentModern Web Development
Modern Web Development
 
Making HTML5 Mobile Games Indistinguishable from Native Apps
Making HTML5 Mobile Games Indistinguishable from Native AppsMaking HTML5 Mobile Games Indistinguishable from Native Apps
Making HTML5 Mobile Games Indistinguishable from Native Apps
 
The Mobile Web - HTML5 on mobile devices
The Mobile Web - HTML5 on mobile devicesThe Mobile Web - HTML5 on mobile devices
The Mobile Web - HTML5 on mobile devices
 
SharePoint and jQuery Essentials
SharePoint and jQuery EssentialsSharePoint and jQuery Essentials
SharePoint and jQuery Essentials
 
HTML5 History & Features
HTML5 History & FeaturesHTML5 History & Features
HTML5 History & Features
 
Introduction to HTML language Web design.pptx
Introduction to HTML language Web design.pptxIntroduction to HTML language Web design.pptx
Introduction to HTML language Web design.pptx
 
WEB DEVELOPMENT.pptx
WEB DEVELOPMENT.pptxWEB DEVELOPMENT.pptx
WEB DEVELOPMENT.pptx
 

More from Guillermo Paz

JavaScript: The prototype Property
JavaScript: The prototype PropertyJavaScript: The prototype Property
JavaScript: The prototype Property
Guillermo Paz
 
Chico UI - Retreat 2011
Chico UI - Retreat 2011Chico UI - Retreat 2011
Chico UI - Retreat 2011
Guillermo Paz
 

More from Guillermo Paz (7)

User First
User FirstUser First
User First
 
ES6 in Production [JSConfUY2015]
ES6 in Production [JSConfUY2015]ES6 in Production [JSConfUY2015]
ES6 in Production [JSConfUY2015]
 
Decoupling your JavaScript
Decoupling your JavaScriptDecoupling your JavaScript
Decoupling your JavaScript
 
JavaScript: The prototype Property
JavaScript: The prototype PropertyJavaScript: The prototype Property
JavaScript: The prototype Property
 
Estándares Web con Chico UI
Estándares Web con Chico UIEstándares Web con Chico UI
Estándares Web con Chico UI
 
Chico UI - Retreat 2011
Chico UI - Retreat 2011Chico UI - Retreat 2011
Chico UI - Retreat 2011
 
Weat - Presentación
Weat - PresentaciónWeat - Presentación
Weat - Presentación
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Recently uploaded (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 

HTML5: Introduction