SlideShare a Scribd company logo
Primer for PHP Devs
      by Graeme Bryan
HTML

• Tim Berners-Lee

• 1989

• W3C World Wide Web Consortium

• Actually developed document sharing system
  in 1980
Journey to HTML5
             1989
  1980                  1995       1997
           Internet
ENQUIRE               HTML 2.0   HTML 3.2
          proposed
Journey to HTML5
                   1989
  1980                        1995            1997
                 Internet
ENQUIRE                     HTML 2.0        HTML 3.2
                proposed




            1998                  2000
          HTML 4.01             XHTML 1.0
Journey to HTML5
                   1989
  1980                         1995            1997
                 Internet
ENQUIRE                      HTML 2.0        HTML 3.2
                proposed




            1998                   2000
          HTML 4.01              XHTML 1.0




                      2008     XHTML?
XHTML5?

• Yes

• Part of the HTML5 spec

• XML-based serialisation of HTML5
WHATWG?
• Web Hypertext Application Technology Working
  Group

• competing vision

• Web browser manufacturers and interested parties

• based on HTML and related technologies

• interoperable Web Applications

• submit the results to a standards organisation
New Tags & Attributes
• <!DOCTYPE html>       • <aside>

• rel="archives" etc.   • <hgroup>

• <section>             • <header>

• <nav>                 • <footer>

• <article>             • <time>
APIs
• <canvas>

• <video>

• navigator.geolocation

• window.localStorage

• text/cache-manifest
Forms
• autofocus

• placeholder="Your Email"

• type="email"

• type="date"

• type="search"

• Etc.
Canvas
• a resolution-
  dependent bitmap
  canvas

• Graphs, charts

• Game graphics

• visual images on the
  fly
Canvas compatibility
   caniuse.com
Video
<video src="pr6.webm" width="320" height="240"></video>




<video width="320" height="240" controls>
 <source src="pr6.mp4" type='video/mp4; codecs="avc1.42E01E,
 mp4a.40.2"'>
 <source src="pr6.webm" type='video/webm; codecs="vp8, vorbis"'>
 <source src="pr6.ogv" type='video/ogg; codecs="theora, vorbis"'>
</video>
Video compatibility




Also may need different resolutions / sizes for slow
connections and small screens
Video for everybody
• Camen Design UK

• <camendesign.com/code/video_for_everybody>

• Fallback to Flash Video

• However, browser controls look

• MediaElement.js <mediaelementjs.com>

• VideoJS <videojs.com>
Geo-location

function get_location() {
  if (Modernizr.geolocation) {
    navigator.geolocation.getCurrentPosition(show_map);
  } else {
    // no native support; maybe try Gears?
  }
 }
Geolocation support
Local Storage
• Cookies are limited to about 4 KB of data

• Web apps need a lot of storage space...

• on the client...

• that persists beyond a page refresh...

• and isn't transmitted to the server.
window.localStorage

 function supports_html5_storage() {
   return ('localStorage' in window) &&
       window['localStorage'] !== null;
 }


 var foo = localStorage.getItem("bar");
  // ...
 localStorage.setItem("bar", foo);
window.localStorage
text/cache-manifest
• Offline web application

• will read the list of URLs from the manifest file

• download the resources

• cache them locally

• and automatically keep the local copies up to
  date as they change
text/cache-manifest

    CACHE MANIFEST
    NETWORK:
    /tracking.cgi
    CACHE:
    /clock.css
    /clock.js
    /clock-face.jpg
text/cache-manifest
Just one more thing...
Boilerplate:
      Why it is awesome
• Cross-browser compatible (IE6)

• HTML5 ready. Use the new tags with certainty

• Optimal caching and compression

• Best practice site configuration defaults

• Mobile browser optimisations

• Progressive enhancement graceful degradation

• IE specific classes for maximum cross-browser control

• Handy .no-js and .js classes to style based on capability

• A full, hooked up test suite
Boilerplate:
    Why it is awesom-er
• Javascript profiling…in IE6 and IE7?

• Console.log nerfing so you won't break anyone by mistake

• Never go wrong with your doctype or markup!

• An optimal print stylesheet, performance optimized

• iOS, Android, Opera Mobile-adaptable markup and CSS skeleton

• IE6 pngfix baked in

• .clearfix, .visuallyhidden classes to style things wisely and accessibly

• .htaccess file that allows proper use of HTML5 features and faster page
  load

• CDN hosted jQuery with local fallback failsafe

• Think there's too much? The HTML5 Boilerplate is delete-key friendly. :)
HTML5 Reset v2


• Similar to boilerplate but different in scope

• html5reset.org
Resources
• Dive Into HTML5 by Mark Pilgrim
  <diveintohtml5.org>

• HTML5: Up & Running (printed version)
  O'Reilly

• dev.w3.org/html5/html4-differences/

• en.wikipedia.org/wiki/HTML5
Thank you

My name is Graeme Bryan

Mobile: 0425 724 169

Email: grae@avinago.com

URL: avinago.com/webbinago

More Related Content

PDF
Webアプリケーションフレームワークを利用した効率的なカスタムWeb開発
Atsushi Matsuo
 
KEY
CakePHP at a Massive Scale on a Budget
andygale
 
PDF
How to make your Webpack builds 10x faster
trueter
 
KEY
Rapid development with Rails
Yi-Ting Cheng
 
KEY
WHAT IS HTML5?(20100510)
Shumpei Shiraishi
 
PDF
Dev objective2015 lets git together
ColdFusionConference
 
PPTX
They why behind php frameworks
Kirk Madera
 
PDF
Rails on HBase
Tony Hillerson
 
Webアプリケーションフレームワークを利用した効率的なカスタムWeb開発
Atsushi Matsuo
 
CakePHP at a Massive Scale on a Budget
andygale
 
How to make your Webpack builds 10x faster
trueter
 
Rapid development with Rails
Yi-Ting Cheng
 
WHAT IS HTML5?(20100510)
Shumpei Shiraishi
 
Dev objective2015 lets git together
ColdFusionConference
 
They why behind php frameworks
Kirk Madera
 
Rails on HBase
Tony Hillerson
 

What's hot (18)

PPTX
Quick & Dirty Wordpress Customization
Magnetic Ideas, LLC
 
PDF
Deploying PHP Application Using Bitbucket Pipelines
Dolly Aswin Harahap
 
PDF
ColdFusion builder plugins
ColdFusionConference
 
PDF
Realtime with websockets
ColdFusionConference
 
PDF
OpenNTF Webinar, March, 2021
Howard Greenberg
 
PDF
September-2021 OpenNTF Webinar: Domino Online Meeting Integration (DOMI)
Howard Greenberg
 
PPTX
Webpack and Web Performance Optimization
Chen-Tien Tsai
 
PDF
How to Build Custom WordPress Blocks
Morten Rand-Hendriksen
 
PPTX
HTML 5
Himmat Singh
 
PDF
Building the next generation of themes with WP Rig 2.0
Morten Rand-Hendriksen
 
PDF
ColdFusion in Transit action
ColdFusionConference
 
PDF
Serverless Media Workflow
MooYeol Lee
 
PDF
Instant ColdFusion with Vagrant
ColdFusionConference
 
PDF
Contentful with Netgen Layouts workshop
Ivo Lukac
 
KEY
Looking into HTML5 + CSS3
Christopher Schmitt
 
PPTX
WordPress Development with VVV, VV, and Vagrant
Mitch Canter
 
KEY
Ultra-modern Front-end Dev & Introducing Spar
Aaron White
 
ODP
TDC2017 | Florianopolis - Trilha DevOps How we figured out we had a SRE team ...
tdc-globalcode
 
Quick & Dirty Wordpress Customization
Magnetic Ideas, LLC
 
Deploying PHP Application Using Bitbucket Pipelines
Dolly Aswin Harahap
 
ColdFusion builder plugins
ColdFusionConference
 
Realtime with websockets
ColdFusionConference
 
OpenNTF Webinar, March, 2021
Howard Greenberg
 
September-2021 OpenNTF Webinar: Domino Online Meeting Integration (DOMI)
Howard Greenberg
 
Webpack and Web Performance Optimization
Chen-Tien Tsai
 
How to Build Custom WordPress Blocks
Morten Rand-Hendriksen
 
HTML 5
Himmat Singh
 
Building the next generation of themes with WP Rig 2.0
Morten Rand-Hendriksen
 
ColdFusion in Transit action
ColdFusionConference
 
Serverless Media Workflow
MooYeol Lee
 
Instant ColdFusion with Vagrant
ColdFusionConference
 
Contentful with Netgen Layouts workshop
Ivo Lukac
 
Looking into HTML5 + CSS3
Christopher Schmitt
 
WordPress Development with VVV, VV, and Vagrant
Mitch Canter
 
Ultra-modern Front-end Dev & Introducing Spar
Aaron White
 
TDC2017 | Florianopolis - Trilha DevOps How we figured out we had a SRE team ...
tdc-globalcode
 
Ad

Viewers also liked (6)

PDF
Ruby Coding Dojo
Jens-Christian Fischer
 
KEY
Taking your Web App for a walk
Jens-Christian Fischer
 
PDF
Architektur der kleinen Bausteine
Jens-Christian Fischer
 
KEY
Mobino at Webmondy Frankfurt, Mai 2011
Jens-Christian Fischer
 
KEY
SOLID Ruby, SOLID Rails
Jens-Christian Fischer
 
PDF
Testing distributed, complex web applications
Jens-Christian Fischer
 
Ruby Coding Dojo
Jens-Christian Fischer
 
Taking your Web App for a walk
Jens-Christian Fischer
 
Architektur der kleinen Bausteine
Jens-Christian Fischer
 
Mobino at Webmondy Frankfurt, Mai 2011
Jens-Christian Fischer
 
SOLID Ruby, SOLID Rails
Jens-Christian Fischer
 
Testing distributed, complex web applications
Jens-Christian Fischer
 
Ad

Similar to Html5 Primer (20)

KEY
Everything you need to know about HTML5 in 15 min
Edgar Parada
 
ODP
Html5
mikusuraj
 
PDF
Building a Better Web with HTML5 and CSS3
Karambir Singh Nain
 
KEY
HTML5 History & Features
Dave Ross
 
PDF
HTML5
Craig Hobson
 
PDF
WordCamp Thessaloniki2011 The NextWeb
George Kanellopoulos
 
PDF
Word camp nextweb
Panagiotis Grigoropoulos
 
PDF
HTML5 Who what where when why how
brucelawson
 
PDF
HTML5 Intoduction for Web Developers
Sascha Corti
 
PDF
HTML5 kickstart - Brooklyn Beta workshop 21.10.2010
Patrick Lauke
 
PPTX
Html5 and css3
Deniss Platonov
 
PPT
HTML5 Webinar - Mind Storm Software
Romin Irani
 
PDF
HTML5 and friends - Institutional Web Management Workshop 2010
Patrick Lauke
 
PDF
HTML5, just another presentation :)
François Massart
 
PDF
Front end for back end developers
Wojciech Bednarski
 
PPTX
Html 5
Nguyen Quang
 
PDF
HTML5
Cygnet Infotech
 
PDF
soft-shake.ch - Introduction to HTML5
soft-shake.ch
 
KEY
Html5
Sven Haiges
 
Everything you need to know about HTML5 in 15 min
Edgar Parada
 
Html5
mikusuraj
 
Building a Better Web with HTML5 and CSS3
Karambir Singh Nain
 
HTML5 History & Features
Dave Ross
 
WordCamp Thessaloniki2011 The NextWeb
George Kanellopoulos
 
Word camp nextweb
Panagiotis Grigoropoulos
 
HTML5 Who what where when why how
brucelawson
 
HTML5 Intoduction for Web Developers
Sascha Corti
 
HTML5 kickstart - Brooklyn Beta workshop 21.10.2010
Patrick Lauke
 
Html5 and css3
Deniss Platonov
 
HTML5 Webinar - Mind Storm Software
Romin Irani
 
HTML5 and friends - Institutional Web Management Workshop 2010
Patrick Lauke
 
HTML5, just another presentation :)
François Massart
 
Front end for back end developers
Wojciech Bednarski
 
Html 5
Nguyen Quang
 
soft-shake.ch - Introduction to HTML5
soft-shake.ch
 

Recently uploaded (20)

PDF
Software Development Methodologies in 2025
KodekX
 
PDF
agentic-ai-and-the-future-of-autonomous-systems.pdf
siddharthnetsavvies
 
DOCX
Top AI API Alternatives to OpenAI: A Side-by-Side Breakdown
vilush
 
PDF
Building High-Performance Oracle Teams: Strategic Staffing for Database Manag...
SMACT Works
 
PDF
Revolutionize Operations with Intelligent IoT Monitoring and Control
Rejig Digital
 
PDF
Why Your AI & Cybersecurity Hiring Still Misses the Mark in 2025
Virtual Employee Pvt. Ltd.
 
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
AbdullahSani29
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
Captain IT
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Enable Enterprise-Ready Security on IBM i Systems.pdf
Precisely
 
PDF
NewMind AI Monthly Chronicles - July 2025
NewMind AI
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
DevOps & Developer Experience Summer BBQ
AUGNYC
 
PDF
REPORT: Heating appliances market in Poland 2024
SPIUG
 
PPTX
C Programming Basics concept krnppt.pptx
Karan Prajapat
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
This slide provides an overview Technology
mineshkharadi333
 
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
Software Development Methodologies in 2025
KodekX
 
agentic-ai-and-the-future-of-autonomous-systems.pdf
siddharthnetsavvies
 
Top AI API Alternatives to OpenAI: A Side-by-Side Breakdown
vilush
 
Building High-Performance Oracle Teams: Strategic Staffing for Database Manag...
SMACT Works
 
Revolutionize Operations with Intelligent IoT Monitoring and Control
Rejig Digital
 
Why Your AI & Cybersecurity Hiring Still Misses the Mark in 2025
Virtual Employee Pvt. Ltd.
 
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
AbdullahSani29
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
Captain IT
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Enable Enterprise-Ready Security on IBM i Systems.pdf
Precisely
 
NewMind AI Monthly Chronicles - July 2025
NewMind AI
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
DevOps & Developer Experience Summer BBQ
AUGNYC
 
REPORT: Heating appliances market in Poland 2024
SPIUG
 
C Programming Basics concept krnppt.pptx
Karan Prajapat
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
This slide provides an overview Technology
mineshkharadi333
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 

Html5 Primer

  • 1. Primer for PHP Devs by Graeme Bryan
  • 2. HTML • Tim Berners-Lee • 1989 • W3C World Wide Web Consortium • Actually developed document sharing system in 1980
  • 3. Journey to HTML5 1989 1980 1995 1997 Internet ENQUIRE HTML 2.0 HTML 3.2 proposed
  • 4. Journey to HTML5 1989 1980 1995 1997 Internet ENQUIRE HTML 2.0 HTML 3.2 proposed 1998 2000 HTML 4.01 XHTML 1.0
  • 5. Journey to HTML5 1989 1980 1995 1997 Internet ENQUIRE HTML 2.0 HTML 3.2 proposed 1998 2000 HTML 4.01 XHTML 1.0 2008 XHTML?
  • 6. XHTML5? • Yes • Part of the HTML5 spec • XML-based serialisation of HTML5
  • 7. WHATWG? • Web Hypertext Application Technology Working Group • competing vision • Web browser manufacturers and interested parties • based on HTML and related technologies • interoperable Web Applications • submit the results to a standards organisation
  • 8. New Tags & Attributes • <!DOCTYPE html> • <aside> • rel="archives" etc. • <hgroup> • <section> • <header> • <nav> • <footer> • <article> • <time>
  • 9. APIs • <canvas> • <video> • navigator.geolocation • window.localStorage • text/cache-manifest
  • 10. Forms • autofocus • placeholder="Your Email" • type="email" • type="date" • type="search" • Etc.
  • 11. Canvas • a resolution- dependent bitmap canvas • Graphs, charts • Game graphics • visual images on the fly
  • 12. Canvas compatibility caniuse.com
  • 13. Video <video src="pr6.webm" width="320" height="240"></video> <video width="320" height="240" controls> <source src="pr6.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> <source src="pr6.webm" type='video/webm; codecs="vp8, vorbis"'> <source src="pr6.ogv" type='video/ogg; codecs="theora, vorbis"'> </video>
  • 14. Video compatibility Also may need different resolutions / sizes for slow connections and small screens
  • 15. Video for everybody • Camen Design UK • <camendesign.com/code/video_for_everybody> • Fallback to Flash Video • However, browser controls look • MediaElement.js <mediaelementjs.com> • VideoJS <videojs.com>
  • 16. Geo-location function get_location() { if (Modernizr.geolocation) { navigator.geolocation.getCurrentPosition(show_map); } else { // no native support; maybe try Gears? } }
  • 18. Local Storage • Cookies are limited to about 4 KB of data • Web apps need a lot of storage space... • on the client... • that persists beyond a page refresh... • and isn't transmitted to the server.
  • 19. window.localStorage function supports_html5_storage() { return ('localStorage' in window) && window['localStorage'] !== null; } var foo = localStorage.getItem("bar"); // ... localStorage.setItem("bar", foo);
  • 21. text/cache-manifest • Offline web application • will read the list of URLs from the manifest file • download the resources • cache them locally • and automatically keep the local copies up to date as they change
  • 22. text/cache-manifest CACHE MANIFEST NETWORK: /tracking.cgi CACHE: /clock.css /clock.js /clock-face.jpg
  • 24. Just one more thing...
  • 25. Boilerplate: Why it is awesome • Cross-browser compatible (IE6) • HTML5 ready. Use the new tags with certainty • Optimal caching and compression • Best practice site configuration defaults • Mobile browser optimisations • Progressive enhancement graceful degradation • IE specific classes for maximum cross-browser control • Handy .no-js and .js classes to style based on capability • A full, hooked up test suite
  • 26. Boilerplate: Why it is awesom-er • Javascript profiling…in IE6 and IE7? • Console.log nerfing so you won't break anyone by mistake • Never go wrong with your doctype or markup! • An optimal print stylesheet, performance optimized • iOS, Android, Opera Mobile-adaptable markup and CSS skeleton • IE6 pngfix baked in • .clearfix, .visuallyhidden classes to style things wisely and accessibly • .htaccess file that allows proper use of HTML5 features and faster page load • CDN hosted jQuery with local fallback failsafe • Think there's too much? The HTML5 Boilerplate is delete-key friendly. :)
  • 27. HTML5 Reset v2 • Similar to boilerplate but different in scope • html5reset.org
  • 28. Resources • Dive Into HTML5 by Mark Pilgrim <diveintohtml5.org> • HTML5: Up & Running (printed version) O'Reilly • dev.w3.org/html5/html4-differences/ • en.wikipedia.org/wiki/HTML5
  • 29. Thank you My name is Graeme Bryan Mobile: 0425 724 169 Email: [email protected] URL: avinago.com/webbinago

Editor's Notes