SlideShare a Scribd company logo
HTML5 API
binary-studio.com
Plan
1. Introduction. Web components
2. Storages and offline applications
3. Working with media
4. HTML5 Graphics
WEB Components
small parts of something great
Academy PRO: HTML5 API Introduction
Web components
1. Custom elements
2. Shadow DOM
3. Templating
4. HTML import
Custom elements
http://html5-demos.appspot.com/gangnam
Creating custom elements
var XFoo = document.registerElement('x-foo');
document.body.appendChild(new XFoo());
var XFoo = document.registerElement('x-foo', {
prototype: Object.create(HTMLElement.prototype)
});
var MegaButton = document.registerElement('mega-button', {
prototype: Object.create(HTMLButtonElement.prototype),
extends: 'button'
})
Cool and easy
 deprecated feature
<element name="x-gangnam-style">
...
</element>
<element name="custom-button" extends="button">
...
</element>
Templates
<template>...</template>
HTML import
<link rel="import" href="/components/x-gangnam-style.html">
var link = document.querySelector('link[rel=import]');
var content = link.import.querySelector('#intro-dm');
document.body.appendChild(content.cloneNode(true));
Shadow DOM
hidden power
What is shadow DOM?
What is shadow DOM?
<video src="http://craftymind.com/factory/html5video/BigBuckBunny_640x360.mp4" controls></video>
How to find it?
Why do we need it?
1. Encapsulation
2. Tempating
3. Stable DOM behaviour
How does it work?
Shadow Host (Element)
Shadow root
Contents
How does it work?
How does it work?
How does it work?
Let’s play!
http://codepen.io/anon/pen/ONJBoY
http://codepen.io/anon/pen/QNWZZb
http://codepen.io/anon/pen/MyWPNp
http://codepen.io/anon/pen/bpGQVE
http://codepen.io/jasonmayes/pen/HxEiv
http://html5-demos.appspot.com/shadowdom-visualizer
Support
Polymer
Usage
INSTEAD OF <element name="..."> USE <polymer-element name="...">
Other
https://customelements.io/
X-Tags ĐŸŃ‚ Mozilla

More Related Content

PDF
Introduction to Polymer
PDF
Polymer & the web components revolution 6:25:14
PDF
Polymer - Lego for the web!
PDF
Polymer, A Web Component Polyfill Library
PDF
AngularDay 2018 - Angular Elements
PDF
АлДĐșŃĐ°ĐœĐŽŃ€ ĐšĐ°ŃˆĐ”ĐČĐ”Ń€ĐŸĐČ - Polymer
PDF
Web Components: The future of Web Application Development
PDF
Web components - a whirlwind tour
Introduction to Polymer
Polymer & the web components revolution 6:25:14
Polymer - Lego for the web!
Polymer, A Web Component Polyfill Library
AngularDay 2018 - Angular Elements
АлДĐșŃĐ°ĐœĐŽŃ€ ĐšĐ°ŃˆĐ”ĐČĐ”Ń€ĐŸĐČ - Polymer
Web Components: The future of Web Application Development
Web components - a whirlwind tour

What's hot (13)

PPTX
Web Components: Web back to future.
PDF
Web Components with Polymer (extra Polymer 2.0)
ODP
Mechanize at the Ruby Drink-up of Sophia, November 2011
PPTX
Salesforce integration with Box.com, docuSign & QuickBooks made easy
PPT
Session iii(server controls)
PDF
Polymer
PPTX
Polymer
PDF
Manipulating Magento - Meet Magento Belgium 2017
PDF
Devoxx 2014-webComponents
PDF
Introduction to Web Components
PPTX
Xaml novinky ve Windows 10
PDF
Introduction to Magento 2 module development - PHP Antwerp Meetup 2017
PPTX
Polymer and web component
Web Components: Web back to future.
Web Components with Polymer (extra Polymer 2.0)
Mechanize at the Ruby Drink-up of Sophia, November 2011
Salesforce integration with Box.com, docuSign & QuickBooks made easy
Session iii(server controls)
Polymer
Polymer
Manipulating Magento - Meet Magento Belgium 2017
Devoxx 2014-webComponents
Introduction to Web Components
Xaml novinky ve Windows 10
Introduction to Magento 2 module development - PHP Antwerp Meetup 2017
Polymer and web component
Ad

Viewers also liked (8)

PPTX
Academy PRO: HTML5 API graphics
KEY
HTML5, CSS3, and other fancy buzzwords
PDF
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
PPTX
Academy PRO: HTML5 API multimedia
PPTX
Introduction to HTML5 and CSS3 (revised)
PPTX
Accelerated Adoption: HTML5 and CSS3 for ASP.NET Developers
PDF
Responsive Web Design - more than just a buzzword
KEY
Building Rich Mobile Apps with HTML5, CSS3 and JavaScript
 
Academy PRO: HTML5 API graphics
HTML5, CSS3, and other fancy buzzwords
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
Academy PRO: HTML5 API multimedia
Introduction to HTML5 and CSS3 (revised)
Accelerated Adoption: HTML5 and CSS3 for ASP.NET Developers
Responsive Web Design - more than just a buzzword
Building Rich Mobile Apps with HTML5, CSS3 and JavaScript
 
Ad

Similar to Academy PRO: HTML5 API Introduction (20)

PDF
Brownbag on basics of web components
PPTX
Web Components: back to the future
 
PDF
Web Components - The Future is Here
PDF
Web components
PDF
ENIB 2015 2016 - CAI Web S02E01- CÎté Navigateur 3/3 - Web Components avec Po...
PDF
2014 03-25 - GDG Nantes - Web Components avec Polymer
PPTX
Web Components: Introduction and Practical Use Cases
PDF
Webcomponents TLV October 2014
PDF
Build Reusable Web Components using HTML5 Web cComponents
PPTX
Iasi code camp 12 october 2013 shadow dom - mihai bĂźrsan
PDF
Modern Web UI - Web components
PDF
Web component driven development
PPTX
Magic of web components
PDF
The Time for Vanilla Web Components has Arrived
PDF
Webcomponents v2
PPTX
Web components
PPTX
Web components
PDF
Web Components and Modular CSS
PPTX
Rawnet Lightning Talk - Web Components
 
PPT
Reaching for the Future with Web Components and Polymer
 
Brownbag on basics of web components
Web Components: back to the future
 
Web Components - The Future is Here
Web components
ENIB 2015 2016 - CAI Web S02E01- CÎté Navigateur 3/3 - Web Components avec Po...
2014 03-25 - GDG Nantes - Web Components avec Polymer
Web Components: Introduction and Practical Use Cases
Webcomponents TLV October 2014
Build Reusable Web Components using HTML5 Web cComponents
Iasi code camp 12 october 2013 shadow dom - mihai bĂźrsan
Modern Web UI - Web components
Web component driven development
Magic of web components
The Time for Vanilla Web Components has Arrived
Webcomponents v2
Web components
Web components
Web Components and Modular CSS
Rawnet Lightning Talk - Web Components
 
Reaching for the Future with Web Components and Polymer
 

More from Binary Studio (20)

PPTX
Academy PRO: D3, part 3
PPTX
Academy PRO: D3, part 1
PPTX
Academy PRO: Cryptography 3
PPTX
Academy PRO: Cryptography 1
PPTX
Academy PRO: Advanced React Ecosystem. MobX
PPTX
Academy PRO: Docker. Part 4
PPTX
Academy PRO: Docker. Part 2
PPTX
Academy PRO: Docker. Part 1
PPTX
Binary Studio Academy 2017: JS team project - Orderly
PPTX
Binary Studio Academy 2017: .NET team project - Unicorn
PPTX
Academy PRO: React native - miscellaneous
PPTX
Academy PRO: React native - publish
PPTX
Academy PRO: React native - navigation
PPTX
Academy PRO: React native - building first scenes
PPTX
Academy PRO: React Native - introduction
PPTX
Academy PRO: Push notifications. Denis Beketsky
PPTX
Academy PRO: Docker. Lecture 4
PPTX
Academy PRO: Docker. Lecture 3
PPTX
Academy PRO: Docker. Lecture 2
PPTX
Academy PRO: Docker. Lecture 1
Academy PRO: D3, part 3
Academy PRO: D3, part 1
Academy PRO: Cryptography 3
Academy PRO: Cryptography 1
Academy PRO: Advanced React Ecosystem. MobX
Academy PRO: Docker. Part 4
Academy PRO: Docker. Part 2
Academy PRO: Docker. Part 1
Binary Studio Academy 2017: JS team project - Orderly
Binary Studio Academy 2017: .NET team project - Unicorn
Academy PRO: React native - miscellaneous
Academy PRO: React native - publish
Academy PRO: React native - navigation
Academy PRO: React native - building first scenes
Academy PRO: React Native - introduction
Academy PRO: Push notifications. Denis Beketsky
Academy PRO: Docker. Lecture 4
Academy PRO: Docker. Lecture 3
Academy PRO: Docker. Lecture 2
Academy PRO: Docker. Lecture 1

Recently uploaded (20)

PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
 
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Digital Systems & Binary Numbers (comprehensive )
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
medical staffing services at VALiNTRY
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
ai tools demonstartion for schools and inter college
PPTX
Transform Your Business with a Software ERP System
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
L1 - Introduction to python Backend.pptx
PDF
System and Network Administration Chapter 2
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPT
Introduction Database Management System for Course Database
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Computer Software and OS of computer science of grade 11.pptx
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
 
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Wondershare Filmora 15 Crack With Activation Key [2025
CHAPTER 2 - PM Management and IT Context
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Digital Systems & Binary Numbers (comprehensive )
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Navsoft: AI-Powered Business Solutions & Custom Software Development
medical staffing services at VALiNTRY
Operating system designcfffgfgggggggvggggggggg
ai tools demonstartion for schools and inter college
Transform Your Business with a Software ERP System
VVF-Customer-Presentation2025-Ver1.9.pptx
L1 - Introduction to python Backend.pptx
System and Network Administration Chapter 2
Design an Analysis of Algorithms I-SECS-1021-03
Introduction Database Management System for Course Database
PTS Company Brochure 2025 (1).pdf.......
Computer Software and OS of computer science of grade 11.pptx

Academy PRO: HTML5 API Introduction