SlideShare uma empresa Scribd logo
1 de 13
October
                                                            10
                                                            2011




HTML5 ★ Boilerplate   Mohammed Arif
                      Manager Interactive Development @ SapientNitro

                      www.mohammedarif.com
                      https://twitter.com/#!/arif_iq
                      http://in.linkedin.com/in/mohdarif
Agenda
 What is HTML5 Boilerplate

 Who uses it

 Why is it

 Where do I get it

 10 things you should know

 Build Script

 Walkthrough of default.properties

 Demo

 Git Basics
What is HTML5 Boilerplate

  HTML5 Boilerplate is the professional badass's base HTML/CSS/JS template
  for a fast, robust and future-proof site. ~html5boilerplate.com


 H5BP is a front-end starting template and collection of best
  practices. ~Paul Irish
Who uses it

https://github.com/h5bp/html5-boilerplate/wiki/sites
Why is it

Cross-browser compatible
HTML5 ready. Use the new tags with certainty
Optimal caching and compression rules for grade-A performance
Best practice site configuration defaults
Mobile browser optimizations
Progressive enhancement graceful degradation
IE specific classes for maximum cross-browser control
Handy .no-js and .js classes to style based on capability
Why is it

Never go wrong with your doctype or markup!
An optimal print stylesheet, performance optimized
iOS, Android, Opera Mobile-adaptable markup and CSS skeleton
.htaccess file that allows proper use of HTML5 features and faster page load
CDN hosted jQuery with local fallback failsafe.
Where do I get it
 http://html5boilerplate.com/


 Or bleeding edge:
 https://github.com/h5bp/html5-boilerplate
Three Versions
•   Use the documented version to learn
•   Use the stripped version in your project
•   Customize as per your need, use HTML5 template generator @
    http://www.initializr.com/
10 things you should know
•   IE conditional comments
•   X-UA-Compatible
•   Meta charset
•   jQuery include
•   Overflow-y
•   Ie6 background cache
•   .htaccess
•   Test suite
•   Build Script [https://github.com/h5bp/ant-build-script]
Build Script…
A tool that optimizes your code for the Web

•   Combines and minifies javascript (via yui compressor)
•   Inlines stylesheets specified using @import in your CSS
•   Combines and minifies CSS
•   Optimizes JPGs and PNGs (with jpegtran & optipng)
•   Removes development only code (any remaining console.log files, profiling,
    test suite)
•   Basic to aggressive html minification (via htmlcompressor)
Build Script
Auto generates a cache manifest file (and links from the html tag) when you
enable a property in the project config file.
Revises the file names of your assets so that you can use heavy caching (1 year
expires).
Upgrades the .htaccess to use heavier caching
Updates your HTML to reference these new hyper-optimized CSS + JS files
Updates your HTML to use the minified jQuery instead of the development
version
Remove unneeded references from HTML (like a root folder favicon)
Runs your JavaScript through a code quality tool (optional)
Build Script Requirements
Windows
  Get the Java JDK (JRE isn't enough)
  Get WinAnt and point the installer to Program Files/Java/jre6/bin/


Mac/Linux
     You've got all your dependencies pre-installed, likely. You may need a
     yum install ant-contrib or what have you




 http://net.tutsplus.com/tutorials/html-css-techniques/automated-optimization-with-html5-boilerplate-build/
HTML5 ★ Boilerplate

Mais conteúdo relacionado

Mais procurados

There's A Plugin For That!
There's A Plugin For That!There's A Plugin For That!
There's A Plugin For That!
wcfay
 

Mais procurados (18)

Web Development In 2018
Web Development In 2018Web Development In 2018
Web Development In 2018
 
Joomla 4.0 what's coming in future
Joomla 4.0   what's coming in futureJoomla 4.0   what's coming in future
Joomla 4.0 what's coming in future
 
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
 
Joomla 3.5: better—faster—safer
Joomla 3.5:  better—faster—saferJoomla 3.5:  better—faster—safer
Joomla 3.5: better—faster—safer
 
VT2019 - DA355A - Responsiv webbutveckling
VT2019 - DA355A - Responsiv webbutvecklingVT2019 - DA355A - Responsiv webbutveckling
VT2019 - DA355A - Responsiv webbutveckling
 
Hidden Secrets For A Hack-Proof Joomla! Site
Hidden Secrets For A Hack-Proof Joomla! SiteHidden Secrets For A Hack-Proof Joomla! Site
Hidden Secrets For A Hack-Proof Joomla! Site
 
10 Cool Things You Can Do with Widgets
10 Cool Things You Can Do with Widgets10 Cool Things You Can Do with Widgets
10 Cool Things You Can Do with Widgets
 
HyperDB, MySQL Performance, & Flavors of MySQL
HyperDB, MySQL Performance, & Flavors of MySQLHyperDB, MySQL Performance, & Flavors of MySQL
HyperDB, MySQL Performance, & Flavors of MySQL
 
3 Hacks to Improve WordPress Performance
3 Hacks to Improve WordPress Performance3 Hacks to Improve WordPress Performance
3 Hacks to Improve WordPress Performance
 
Sneak Peek Into Cross Browser Compatibility
Sneak Peek Into Cross Browser CompatibilitySneak Peek Into Cross Browser Compatibility
Sneak Peek Into Cross Browser Compatibility
 
Joomla 10-jaar-vooruitgang-jdnl15
Joomla 10-jaar-vooruitgang-jdnl15Joomla 10-jaar-vooruitgang-jdnl15
Joomla 10-jaar-vooruitgang-jdnl15
 
SPDY
SPDYSPDY
SPDY
 
WordPress Basics
WordPress BasicsWordPress Basics
WordPress Basics
 
Word camp 2013 migration
Word camp 2013 migrationWord camp 2013 migration
Word camp 2013 migration
 
Tips To Increase The Speed Of Drupal 8 Websites
Tips To Increase The Speed Of Drupal 8 WebsitesTips To Increase The Speed Of Drupal 8 Websites
Tips To Increase The Speed Of Drupal 8 Websites
 
Introduction to WordPress Class 1
Introduction to WordPress Class 1Introduction to WordPress Class 1
Introduction to WordPress Class 1
 
Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)
Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)
Launching a WordPress Site 101 (Cincinnati WordPress, August 2015)
 
There's A Plugin For That!
There's A Plugin For That!There's A Plugin For That!
There's A Plugin For That!
 

Destaque

Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)
Joseph Lewis
 

Destaque (12)

Html5 boiler plate
Html5 boiler plateHtml5 boiler plate
Html5 boiler plate
 
jQuery
jQueryjQuery
jQuery
 
Jquery - introduction au langage
Jquery - introduction au langageJquery - introduction au langage
Jquery - introduction au langage
 
jQuery Best Practice
jQuery Best Practice jQuery Best Practice
jQuery Best Practice
 
JQuery
JQueryJQuery
JQuery
 
jQuery
jQueryjQuery
jQuery
 
Présentation jQuery pour débutant
Présentation jQuery pour débutantPrésentation jQuery pour débutant
Présentation jQuery pour débutant
 
High-Speed HTML5
High-Speed HTML5High-Speed HTML5
High-Speed HTML5
 
HTML, CSS & Javascript Architecture (extended version) - Jan Kraus
HTML, CSS & Javascript Architecture (extended version) - Jan KrausHTML, CSS & Javascript Architecture (extended version) - Jan Kraus
HTML, CSS & Javascript Architecture (extended version) - Jan Kraus
 
Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)
 
Refresh OKC
Refresh OKCRefresh OKC
Refresh OKC
 
Intro to html5 Boilerplate
Intro to html5 BoilerplateIntro to html5 Boilerplate
Intro to html5 Boilerplate
 

Semelhante a HTML5 ★ Boilerplate

Html5で変わるいろんなこと
Html5で変わるいろんなことHtml5で変わるいろんなこと
Html5で変わるいろんなこと
Masakazu Muraoka
 
Web development today
Web development todayWeb development today
Web development today
Jaydev Gajera
 
0025 todo lo_que_queria_saber_de_html5_y_no_se_animaba_a_preguntar
0025 todo lo_que_queria_saber_de_html5_y_no_se_animaba_a_preguntar0025 todo lo_que_queria_saber_de_html5_y_no_se_animaba_a_preguntar
0025 todo lo_que_queria_saber_de_html5_y_no_se_animaba_a_preguntar
GeneXus
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
ijceronline
 
Tools for HTML5
Tools for HTML5Tools for HTML5
Tools for HTML5
lillianabe
 

Semelhante a HTML5 ★ Boilerplate (20)

Html5
Html5Html5
Html5
 
Html5で変わるいろんなこと
Html5で変わるいろんなことHtml5で変わるいろんなこと
Html5で変わるいろんなこと
 
[In Control 2010] HTML5
[In Control 2010] HTML5[In Control 2010] HTML5
[In Control 2010] HTML5
 
Fundamentals of HTML5
Fundamentals of HTML5Fundamentals of HTML5
Fundamentals of HTML5
 
Html 5 Features And Benefits
Html 5 Features And Benefits  Html 5 Features And Benefits
Html 5 Features And Benefits
 
HTML5 and Joomla! 2.5 Template
HTML5 and Joomla! 2.5 TemplateHTML5 and Joomla! 2.5 Template
HTML5 and Joomla! 2.5 Template
 
HTML5 Webinar - Mind Storm Software
HTML5 Webinar - Mind Storm SoftwareHTML5 Webinar - Mind Storm Software
HTML5 Webinar - Mind Storm Software
 
The Rich Standard: Getting Familiar with HTML5
The Rich Standard: Getting Familiar with HTML5The Rich Standard: Getting Familiar with HTML5
The Rich Standard: Getting Familiar with HTML5
 
WHAT IS HTML5?(20100510)
WHAT IS HTML5?(20100510)WHAT IS HTML5?(20100510)
WHAT IS HTML5?(20100510)
 
Looking into HTML5 + CSS3
Looking into HTML5 + CSS3Looking into HTML5 + CSS3
Looking into HTML5 + CSS3
 
Html5
Html5Html5
Html5
 
HTML5 Technical Executive Summary
HTML5 Technical Executive SummaryHTML5 Technical Executive Summary
HTML5 Technical Executive Summary
 
Chapter 2 introduction to html5
Chapter 2 introduction to html5Chapter 2 introduction to html5
Chapter 2 introduction to html5
 
HTML 5
HTML 5HTML 5
HTML 5
 
Web development today
Web development todayWeb development today
Web development today
 
HTML5: A brave new world of markup
HTML5: A brave new world of markupHTML5: A brave new world of markup
HTML5: A brave new world of markup
 
HTML5
HTML5HTML5
HTML5
 
0025 todo lo_que_queria_saber_de_html5_y_no_se_animaba_a_preguntar
0025 todo lo_que_queria_saber_de_html5_y_no_se_animaba_a_preguntar0025 todo lo_que_queria_saber_de_html5_y_no_se_animaba_a_preguntar
0025 todo lo_que_queria_saber_de_html5_y_no_se_animaba_a_preguntar
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
Tools for HTML5
Tools for HTML5Tools for HTML5
Tools for HTML5
 

Último

+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@
 
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
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
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
 

Último (20)

DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
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...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
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
 
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
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
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
 
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
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
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
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
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...
 
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
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

HTML5 ★ Boilerplate

  • 1. October 10 2011 HTML5 ★ Boilerplate Mohammed Arif Manager Interactive Development @ SapientNitro www.mohammedarif.com https://twitter.com/#!/arif_iq http://in.linkedin.com/in/mohdarif
  • 2. Agenda  What is HTML5 Boilerplate  Who uses it  Why is it  Where do I get it  10 things you should know  Build Script  Walkthrough of default.properties  Demo  Git Basics
  • 3. What is HTML5 Boilerplate HTML5 Boilerplate is the professional badass's base HTML/CSS/JS template for a fast, robust and future-proof site. ~html5boilerplate.com  H5BP is a front-end starting template and collection of best practices. ~Paul Irish
  • 5. Why is it Cross-browser compatible HTML5 ready. Use the new tags with certainty Optimal caching and compression rules for grade-A performance Best practice site configuration defaults Mobile browser optimizations Progressive enhancement graceful degradation IE specific classes for maximum cross-browser control Handy .no-js and .js classes to style based on capability
  • 6. Why is it Never go wrong with your doctype or markup! An optimal print stylesheet, performance optimized iOS, Android, Opera Mobile-adaptable markup and CSS skeleton .htaccess file that allows proper use of HTML5 features and faster page load CDN hosted jQuery with local fallback failsafe.
  • 7. Where do I get it http://html5boilerplate.com/ Or bleeding edge: https://github.com/h5bp/html5-boilerplate
  • 8. Three Versions • Use the documented version to learn • Use the stripped version in your project • Customize as per your need, use HTML5 template generator @ http://www.initializr.com/
  • 9. 10 things you should know • IE conditional comments • X-UA-Compatible • Meta charset • jQuery include • Overflow-y • Ie6 background cache • .htaccess • Test suite • Build Script [https://github.com/h5bp/ant-build-script]
  • 10. Build Script… A tool that optimizes your code for the Web • Combines and minifies javascript (via yui compressor) • Inlines stylesheets specified using @import in your CSS • Combines and minifies CSS • Optimizes JPGs and PNGs (with jpegtran & optipng) • Removes development only code (any remaining console.log files, profiling, test suite) • Basic to aggressive html minification (via htmlcompressor)
  • 11. Build Script Auto generates a cache manifest file (and links from the html tag) when you enable a property in the project config file. Revises the file names of your assets so that you can use heavy caching (1 year expires). Upgrades the .htaccess to use heavier caching Updates your HTML to reference these new hyper-optimized CSS + JS files Updates your HTML to use the minified jQuery instead of the development version Remove unneeded references from HTML (like a root folder favicon) Runs your JavaScript through a code quality tool (optional)
  • 12. Build Script Requirements Windows  Get the Java JDK (JRE isn't enough)  Get WinAnt and point the installer to Program Files/Java/jre6/bin/ Mac/Linux You've got all your dependencies pre-installed, likely. You may need a yum install ant-contrib or what have you http://net.tutsplus.com/tutorials/html-css-techniques/automated-optimization-with-html5-boilerplate-build/