SlideShare a Scribd company logo
HTML5, CSS3 & LESS CSS 
Crash course
HTML5 
 Builds on HTML4 
 Work began in 2006 
 Still not fully W3C ratified – candidate status 
 Includes many old favourites e.g. <p></p> 
<div></div> etc 
 Adds new page layout elements designed to help 
accessibility:
HTML5 PAGE LAYOUT 
Aids accessibility for disabled, partially 
sighted etc via assistive technologies – 
supports ARIA (Accessible Rich Internet 
Applications).
HTML 5 CODE SIMPLER THAN HTML4 
<!DOCTYPE html> 
<html> 
<head> 
<title>Title of the document</title> 
</head> 
<body> 
The content of the document...... 
</body> 
</html>
NEW HTML5 ELEMENTS 
 <canvas> – native in-browser 2D drawing usually 
by javascript (bad news for Adobe Flash) 
 <audio> - sound content 
 <video> - video content 
 <source> - multiple media elements 
 <embed> - embed a plugin 
 <datalist> - form list from external source 
 <output> - result from in-form calculation
 <progress> - progress bar 
 <time> - form date time 
 <figure> - self contained content 
 <mark> - marked highlighted text 
 <keygen> - for secure forms 
 Many more new tags – above are just a few examples
SOME HTML4 ELEMENTS REMOVED 
 <applet> - bye bye Java applets 
 <frame> - good riddance 
 <frameset> - ditto 
 <font> - use css instead 
Most browsers will still render these tags but they are 
not supposed to be used 
Many other tags removed
NEW ATTRIBUTES FOR EXISTING TAGS 
 E.g. a sample of those for form input elements: 
 Autocomplete 
 Autofocus 
 Placeholder 
 Max 
 Min 
 required
A WARNING 
 Major HTML features such as <header> are 
supported in all modern browsers 
 Before using more esoteric HTML5 feature make 
sure it is supported by target browsers…. more to 
come 
 http://fmbip.com/litmus/
HTML5 WEB STORAGE 
 Better than cookies 
 Stored in browser 
 Local Storage - No expiration date 
 Session Storage – Stored for session 
 Beware – malware is misusing, some mobile 
malware installs ‘local storage’ user cannot get rid 
of
LOCAL SQL DATABASE 
 Uses local SQL dB often free SQLLite dB 
 Firefox opposed and will not support 
 IE does not support 
 W3C API for javascript queries to dB 
 Place SQL directly into javascript 
 E.g. executeSQL() method:
db.readTransaction(function (t) { 
t.executeSql('SELECT title, author FROM docs WHERE 
id=?', [id], function (t, data) { 
report(data.rows[0].title, data.rows[0].author); 
}); 
});
HTML5 OFFLINE WEB APPLICATIONS 
 Designed to be used offline (what?) 
 Download content when user is online for browsing 
and use when offline 
 Uses HTML5 cache manifest 
 <!DOCTYPE html> 
 <html manifest="/cache.manifest"> 
 <body> 
 ... 
 </body> 
 </html>
 Sample cache manifest file 
CACHE MANIFEST 
NETWORK: 
/tracking.cgi 
CACHE: 
/clock.css 
/clock.js 
/clock-face.jpg
CSS3 
 Intertwined with HTML5 
 Many new features 
 E.g. 
 Rounded corners 
 CSS animations 
 Text and box shadows 
 Again watch out for browser support
CSS3 MEDIA QUERIES 
 Media query is CSS3 which checks browser 
resolution and applies css if resolution meets 
criteria e.g.: 
@media screen and (max-width: 600px) { .class { 
background: #ccc; } } 
@media screen and (min-width: 900px) { .class { 
background: #666; } } 
 Very important in mobile development
 Instant HTML5 template with good practices 
 Well tried and tested 
 Designed to work with JQuery 
 Uses normalize.css 
 Makes browsers render html5 consistently 
 Corrects common bugs 
 Modernizr.js 
 Detects HTML5 and CSS3 browser capabilities
POLYFILLS 
 Modernizr automatically enables html5 layout 
elements in IE6/7/8 
 For other incompatibilities you must use polyfills – 
there are plenty available on web 
 Each polyfill slows down the page load so use with 
caution 
 Polyfills do javascript emulation of features like 
geolocation on older browsers
Modernizr.load({ test: Modernizr.geolocation, yep : 'geo.js', 
nope: 'geo-polyfill.js' }); 
 Above modernizr code checks for geolocation and loads 
different javascripts depending on support status 
 Polyfills for modernizr are a cottage industry with lots 
available
LESS CSS 
 On big apps the css to produce the same effect can 
be repeated many times e.g. green button with 
round corners 
 CSS often breaks the DRY principle 
 LESS enables snippets of CSS to be reused 
 LESS can either be interpreted at runtime or there 
is an Adobe AIR app called Crunch to ‘compile’ to 
CSS
LESS Mixins
NESTED RULES
FUNCTIONS
CRUNCH – COMPILER FOR LESS 
Compiles LESS into minified 
CSS
FINAL THOUGHTS OF CHAIRMAN GRAHAM 
 Use minified CSS & JS for mobile 
 Several online minifiers 
 Also can combine CSS and JS – quicker to load 
one combined script than several smaller ones
BEDTIME BROWSING 
 http://lesscss.org/ 
 http://html5boilerplate.com/ 
 http://crunchapp.net/ 
 http://necolas.github.io/normalize.css/ 
 http://modernizr.com/
SOME WELL KNOWN HTML5 SITES 
 http://beta.theexpressiveweb.com/ 
 http://grischek.com/ 
 http://jamfactory.com.au/40years/ 
 https://twitter.com/

More Related Content

What's hot

Jaggery Introductory Webinar
Jaggery Introductory WebinarJaggery Introductory Webinar
Jaggery Introductory Webinar
Nuwan Bandara
 
Club website demo
Club website demoClub website demo
Club website demo
blstov
 
Front-End Development
Front-End DevelopmentFront-End Development
Front-End Development
Hein Htet Aung
 
WordPress development checklist
WordPress development checklistWordPress development checklist
WordPress development checklist
Binh Quan Duc
 
Chrome extension development
Chrome extension developmentChrome extension development
Chrome extension development
Michal Haták
 
Please dont touch-3.6-jsday
Please dont touch-3.6-jsdayPlease dont touch-3.6-jsday
Please dont touch-3.6-jsday
Francesco Fullone
 
Web development today
Web development todayWeb development today
Web development todayJaydev Gajera
 
Challenges of angular in production (Tasos Bekos) - GreeceJS #17
Challenges of angular in production (Tasos Bekos) - GreeceJS #17Challenges of angular in production (Tasos Bekos) - GreeceJS #17
Challenges of angular in production (Tasos Bekos) - GreeceJS #17
GreeceJS
 
Bundle Splitting in Volto
Bundle Splitting in VoltoBundle Splitting in Volto
Bundle Splitting in Volto
PloneFoundation
 
Drupal Frontend Performance and Scalability
Drupal Frontend Performance and ScalabilityDrupal Frontend Performance and Scalability
Drupal Frontend Performance and ScalabilityAshok Modi
 
Chrome Extension Develop Starts
Chrome Extension Develop StartsChrome Extension Develop Starts
Chrome Extension Develop Startstaobao.com
 
Adobe CQ5 for Developers - Introduction
Adobe CQ5 for Developers - IntroductionAdobe CQ5 for Developers - Introduction
Adobe CQ5 for Developers - Introduction
Tekno Point
 
Html5 - short intro
Html5 - short introHtml5 - short intro
Html5 - short introjeiseman
 
High Performance Front-End Development
High Performance Front-End DevelopmentHigh Performance Front-End Development
High Performance Front-End Developmentdrywallbmb
 
Data presentation with dust js technologies backing linkedin
Data presentation with dust js   technologies backing linkedinData presentation with dust js   technologies backing linkedin
Data presentation with dust js technologies backing linkedin
Ruhaim Izmeth
 
Simpler Web Architectures Now! (At The Frontend 2016)
Simpler Web Architectures Now! (At The Frontend 2016)Simpler Web Architectures Now! (At The Frontend 2016)
Simpler Web Architectures Now! (At The Frontend 2016)
Gustaf Nilsson Kotte
 
Boost your testing: End-to-End with Docker and Geb
 Boost your testing: End-to-End with Docker and Geb Boost your testing: End-to-End with Docker and Geb
Boost your testing: End-to-End with Docker and Geb
Markus Schlichting
 
An Introduction to Umbraco
An Introduction to UmbracoAn Introduction to Umbraco
An Introduction to Umbraco
Jeremy Branham
 
How i made the responsive mobile version of
How i made the responsive mobile version ofHow i made the responsive mobile version of
How i made the responsive mobile version of
Sayed Ahmed
 
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
GreeceJS
 

What's hot (20)

Jaggery Introductory Webinar
Jaggery Introductory WebinarJaggery Introductory Webinar
Jaggery Introductory Webinar
 
Club website demo
Club website demoClub website demo
Club website demo
 
Front-End Development
Front-End DevelopmentFront-End Development
Front-End Development
 
WordPress development checklist
WordPress development checklistWordPress development checklist
WordPress development checklist
 
Chrome extension development
Chrome extension developmentChrome extension development
Chrome extension development
 
Please dont touch-3.6-jsday
Please dont touch-3.6-jsdayPlease dont touch-3.6-jsday
Please dont touch-3.6-jsday
 
Web development today
Web development todayWeb development today
Web development today
 
Challenges of angular in production (Tasos Bekos) - GreeceJS #17
Challenges of angular in production (Tasos Bekos) - GreeceJS #17Challenges of angular in production (Tasos Bekos) - GreeceJS #17
Challenges of angular in production (Tasos Bekos) - GreeceJS #17
 
Bundle Splitting in Volto
Bundle Splitting in VoltoBundle Splitting in Volto
Bundle Splitting in Volto
 
Drupal Frontend Performance and Scalability
Drupal Frontend Performance and ScalabilityDrupal Frontend Performance and Scalability
Drupal Frontend Performance and Scalability
 
Chrome Extension Develop Starts
Chrome Extension Develop StartsChrome Extension Develop Starts
Chrome Extension Develop Starts
 
Adobe CQ5 for Developers - Introduction
Adobe CQ5 for Developers - IntroductionAdobe CQ5 for Developers - Introduction
Adobe CQ5 for Developers - Introduction
 
Html5 - short intro
Html5 - short introHtml5 - short intro
Html5 - short intro
 
High Performance Front-End Development
High Performance Front-End DevelopmentHigh Performance Front-End Development
High Performance Front-End Development
 
Data presentation with dust js technologies backing linkedin
Data presentation with dust js   technologies backing linkedinData presentation with dust js   technologies backing linkedin
Data presentation with dust js technologies backing linkedin
 
Simpler Web Architectures Now! (At The Frontend 2016)
Simpler Web Architectures Now! (At The Frontend 2016)Simpler Web Architectures Now! (At The Frontend 2016)
Simpler Web Architectures Now! (At The Frontend 2016)
 
Boost your testing: End-to-End with Docker and Geb
 Boost your testing: End-to-End with Docker and Geb Boost your testing: End-to-End with Docker and Geb
Boost your testing: End-to-End with Docker and Geb
 
An Introduction to Umbraco
An Introduction to UmbracoAn Introduction to Umbraco
An Introduction to Umbraco
 
How i made the responsive mobile version of
How i made the responsive mobile version ofHow i made the responsive mobile version of
How i made the responsive mobile version of
 
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
 

Viewers also liked

Introduction to SASS
Introduction to SASSIntroduction to SASS
Introduction to SASSJon Dean
 
Sass - Getting Started with Sass!
Sass - Getting Started with Sass!Sass - Getting Started with Sass!
Sass - Getting Started with Sass!
Eric Sembrat
 
Single-chromosome transcriptional profiling reveals chromosomal gene expressi...
Single-chromosome transcriptional profiling reveals chromosomal gene expressi...Single-chromosome transcriptional profiling reveals chromosomal gene expressi...
Single-chromosome transcriptional profiling reveals chromosomal gene expressi...
Marshall Levesque
 
Zaragoza Turismo 26
Zaragoza Turismo 26Zaragoza Turismo 26
Zaragoza Turismo 26
Saucepolis blog & Hotel Sauce
 
Creative crowdsourcing - Specwork reflections and proposals - Travail spécula...
Creative crowdsourcing - Specwork reflections and proposals - Travail spécula...Creative crowdsourcing - Specwork reflections and proposals - Travail spécula...
Creative crowdsourcing - Specwork reflections and proposals - Travail spécula...
creativecrowdsourcingleaks
 
Happily Ever After (Part 1)
Happily  Ever  After (Part 1)Happily  Ever  After (Part 1)
Happily Ever After (Part 1)Go4God
 
Mobile AirPlan 1-pager
Mobile AirPlan 1-pagerMobile AirPlan 1-pager
Mobile AirPlan 1-pagerDMI
 
Industrial Ecology KIGAM CSIRO
Industrial Ecology KIGAM CSIROIndustrial Ecology KIGAM CSIRO
Industrial Ecology KIGAM CSIRODario Aguilar
 
שרבוט כפול בארגון כלי לפיתוח מנהלים וצוות
שרבוט כפול בארגון כלי לפיתוח מנהלים וצוותשרבוט כפול בארגון כלי לפיתוח מנהלים וצוות
שרבוט כפול בארגון כלי לפיתוח מנהלים וצוות
Yonit Sheintal
 
Zaragoza Turismo 35
Zaragoza Turismo 35Zaragoza Turismo 35
Zaragoza Turismo 35
Saucepolis blog & Hotel Sauce
 
Accelerating Innovation with Spark-(Beth Smith, IBM)
Accelerating Innovation with Spark-(Beth Smith, IBM)Accelerating Innovation with Spark-(Beth Smith, IBM)
Accelerating Innovation with Spark-(Beth Smith, IBM)
Spark Summit
 
Lista de-precios-compugreiff-enero-14-2013
Lista de-precios-compugreiff-enero-14-2013Lista de-precios-compugreiff-enero-14-2013
Lista de-precios-compugreiff-enero-14-2013xxxxx
 
Small is Big
Small is BigSmall is Big
Small is Big
Tricon Infotech
 
M C Squared - New Project Brochure
M C Squared - New Project BrochureM C Squared - New Project Brochure
M C Squared - New Project Brochure
MCSquaredProject
 
Intervencion con Mis Padres...
Intervencion con Mis Padres...Intervencion con Mis Padres...
Intervencion con Mis Padres...
Katerine Medina Giraldo
 
Personal branding project
Personal branding projectPersonal branding project
Personal branding project
tali92
 
Zaragoza Turismo 36
Zaragoza Turismo 36Zaragoza Turismo 36
Zaragoza Turismo 36
Saucepolis blog & Hotel Sauce
 
戦略テーマ設定シート
戦略テーマ設定シート戦略テーマ設定シート
戦略テーマ設定シートMaki Omori
 
Mercado Livre Experience - Matias Gualino
Mercado Livre Experience - Matias GualinoMercado Livre Experience - Matias Gualino
Mercado Livre Experience - Matias Gualino
Matii Gualino
 

Viewers also liked (20)

Less css
Less cssLess css
Less css
 
Introduction to SASS
Introduction to SASSIntroduction to SASS
Introduction to SASS
 
Sass - Getting Started with Sass!
Sass - Getting Started with Sass!Sass - Getting Started with Sass!
Sass - Getting Started with Sass!
 
Single-chromosome transcriptional profiling reveals chromosomal gene expressi...
Single-chromosome transcriptional profiling reveals chromosomal gene expressi...Single-chromosome transcriptional profiling reveals chromosomal gene expressi...
Single-chromosome transcriptional profiling reveals chromosomal gene expressi...
 
Zaragoza Turismo 26
Zaragoza Turismo 26Zaragoza Turismo 26
Zaragoza Turismo 26
 
Creative crowdsourcing - Specwork reflections and proposals - Travail spécula...
Creative crowdsourcing - Specwork reflections and proposals - Travail spécula...Creative crowdsourcing - Specwork reflections and proposals - Travail spécula...
Creative crowdsourcing - Specwork reflections and proposals - Travail spécula...
 
Happily Ever After (Part 1)
Happily  Ever  After (Part 1)Happily  Ever  After (Part 1)
Happily Ever After (Part 1)
 
Mobile AirPlan 1-pager
Mobile AirPlan 1-pagerMobile AirPlan 1-pager
Mobile AirPlan 1-pager
 
Industrial Ecology KIGAM CSIRO
Industrial Ecology KIGAM CSIROIndustrial Ecology KIGAM CSIRO
Industrial Ecology KIGAM CSIRO
 
שרבוט כפול בארגון כלי לפיתוח מנהלים וצוות
שרבוט כפול בארגון כלי לפיתוח מנהלים וצוותשרבוט כפול בארגון כלי לפיתוח מנהלים וצוות
שרבוט כפול בארגון כלי לפיתוח מנהלים וצוות
 
Zaragoza Turismo 35
Zaragoza Turismo 35Zaragoza Turismo 35
Zaragoza Turismo 35
 
Accelerating Innovation with Spark-(Beth Smith, IBM)
Accelerating Innovation with Spark-(Beth Smith, IBM)Accelerating Innovation with Spark-(Beth Smith, IBM)
Accelerating Innovation with Spark-(Beth Smith, IBM)
 
Lista de-precios-compugreiff-enero-14-2013
Lista de-precios-compugreiff-enero-14-2013Lista de-precios-compugreiff-enero-14-2013
Lista de-precios-compugreiff-enero-14-2013
 
Small is Big
Small is BigSmall is Big
Small is Big
 
M C Squared - New Project Brochure
M C Squared - New Project BrochureM C Squared - New Project Brochure
M C Squared - New Project Brochure
 
Intervencion con Mis Padres...
Intervencion con Mis Padres...Intervencion con Mis Padres...
Intervencion con Mis Padres...
 
Personal branding project
Personal branding projectPersonal branding project
Personal branding project
 
Zaragoza Turismo 36
Zaragoza Turismo 36Zaragoza Turismo 36
Zaragoza Turismo 36
 
戦略テーマ設定シート
戦略テーマ設定シート戦略テーマ設定シート
戦略テーマ設定シート
 
Mercado Livre Experience - Matias Gualino
Mercado Livre Experience - Matias GualinoMercado Livre Experience - Matias Gualino
Mercado Livre Experience - Matias Gualino
 

Similar to Html5 & less css

Testable client side_mvc_apps_in_javascript
Testable client side_mvc_apps_in_javascriptTestable client side_mvc_apps_in_javascript
Testable client side_mvc_apps_in_javascript
Timothy Oxley
 
Html5
Html5Html5
State of modern web technologies: an introduction
State of modern web technologies: an introductionState of modern web technologies: an introduction
State of modern web technologies: an introduction
Michael Ahearn
 
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
Todd Anglin
 
EdTechJoker Spring 2020 - Lecture 4 - HTML
EdTechJoker Spring 2020 - Lecture 4 - HTMLEdTechJoker Spring 2020 - Lecture 4 - HTML
EdTechJoker Spring 2020 - Lecture 4 - HTML
Bryan Ollendyke
 
Echo HTML5
Echo HTML5Echo HTML5
Echo HTML5
Nathan Smith
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Sadaaki HIRAI
 
HTML / CSS / JS Web basics
HTML / CSS / JS Web basicsHTML / CSS / JS Web basics
HTML / CSS / JS Web basics
btopro
 
Intro to mobile web application development
Intro to mobile web application developmentIntro to mobile web application development
Intro to mobile web application development
zonathen
 
Developing High Performance Web Apps - CodeMash 2011
Developing High Performance Web Apps - CodeMash 2011Developing High Performance Web Apps - CodeMash 2011
Developing High Performance Web Apps - CodeMash 2011
Timothy Fisher
 
Websites Unlimited - Pay Monthly Websites
Websites Unlimited - Pay Monthly WebsitesWebsites Unlimited - Pay Monthly Websites
Websites Unlimited - Pay Monthly Websites
websiteunlimited
 
DrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizingDrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizing
Ashok Modi
 
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考えるIt is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
Sadaaki HIRAI
 
What is HTML 5?
What is HTML 5?What is HTML 5?
What is HTML 5?
Susan Winters
 
Workshop HTML5+PhoneGap by Ivano Malavolta
Workshop HTML5+PhoneGap by Ivano Malavolta Workshop HTML5+PhoneGap by Ivano Malavolta
Workshop HTML5+PhoneGap by Ivano Malavolta
Commit University
 
A I R Presentation Dev Camp Feb 08
A I R  Presentation  Dev Camp  Feb 08A I R  Presentation  Dev Camp  Feb 08
A I R Presentation Dev Camp Feb 08
Abdul Qabiz
 
High-Speed HTML5
High-Speed HTML5High-Speed HTML5
High-Speed HTML5
Peter Lubbers
 

Similar to Html5 & less css (20)

Testable client side_mvc_apps_in_javascript
Testable client side_mvc_apps_in_javascriptTestable client side_mvc_apps_in_javascript
Testable client side_mvc_apps_in_javascript
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
State of modern web technologies: an introduction
State of modern web technologies: an introductionState of modern web technologies: an introduction
State of modern web technologies: an introduction
 
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
 
EdTechJoker Spring 2020 - Lecture 4 - HTML
EdTechJoker Spring 2020 - Lecture 4 - HTMLEdTechJoker Spring 2020 - Lecture 4 - HTML
EdTechJoker Spring 2020 - Lecture 4 - HTML
 
Echo HTML5
Echo HTML5Echo HTML5
Echo HTML5
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
 
Os mobile
Os mobileOs mobile
Os mobile
 
Os mobile
Os mobileOs mobile
Os mobile
 
HTML / CSS / JS Web basics
HTML / CSS / JS Web basicsHTML / CSS / JS Web basics
HTML / CSS / JS Web basics
 
Intro to mobile web application development
Intro to mobile web application developmentIntro to mobile web application development
Intro to mobile web application development
 
Developing High Performance Web Apps - CodeMash 2011
Developing High Performance Web Apps - CodeMash 2011Developing High Performance Web Apps - CodeMash 2011
Developing High Performance Web Apps - CodeMash 2011
 
Websites Unlimited - Pay Monthly Websites
Websites Unlimited - Pay Monthly WebsitesWebsites Unlimited - Pay Monthly Websites
Websites Unlimited - Pay Monthly Websites
 
DrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizingDrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizing
 
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考えるIt is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
 
What is HTML 5?
What is HTML 5?What is HTML 5?
What is HTML 5?
 
Workshop HTML5+PhoneGap by Ivano Malavolta
Workshop HTML5+PhoneGap by Ivano Malavolta Workshop HTML5+PhoneGap by Ivano Malavolta
Workshop HTML5+PhoneGap by Ivano Malavolta
 
A I R Presentation Dev Camp Feb 08
A I R  Presentation  Dev Camp  Feb 08A I R  Presentation  Dev Camp  Feb 08
A I R Presentation Dev Camp Feb 08
 
High-Speed HTML5
High-Speed HTML5High-Speed HTML5
High-Speed HTML5
 

Recently uploaded

Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
GTProductions1
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
natyesu
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Sanjeev Rampal
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Brad Spiegel Macon GA
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
eutxy
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
ufdana
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
keoku
 
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptxInternet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
VivekSinghShekhawat2
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
laozhuseo02
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
Javier Lasa
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 

Recently uploaded (20)

Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
 
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptxInternet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 

Html5 & less css

  • 1. HTML5, CSS3 & LESS CSS Crash course
  • 2. HTML5  Builds on HTML4  Work began in 2006  Still not fully W3C ratified – candidate status  Includes many old favourites e.g. <p></p> <div></div> etc  Adds new page layout elements designed to help accessibility:
  • 3. HTML5 PAGE LAYOUT Aids accessibility for disabled, partially sighted etc via assistive technologies – supports ARIA (Accessible Rich Internet Applications).
  • 4. HTML 5 CODE SIMPLER THAN HTML4 <!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> The content of the document...... </body> </html>
  • 5. NEW HTML5 ELEMENTS  <canvas> – native in-browser 2D drawing usually by javascript (bad news for Adobe Flash)  <audio> - sound content  <video> - video content  <source> - multiple media elements  <embed> - embed a plugin  <datalist> - form list from external source  <output> - result from in-form calculation
  • 6.  <progress> - progress bar  <time> - form date time  <figure> - self contained content  <mark> - marked highlighted text  <keygen> - for secure forms  Many more new tags – above are just a few examples
  • 7. SOME HTML4 ELEMENTS REMOVED  <applet> - bye bye Java applets  <frame> - good riddance  <frameset> - ditto  <font> - use css instead Most browsers will still render these tags but they are not supposed to be used Many other tags removed
  • 8. NEW ATTRIBUTES FOR EXISTING TAGS  E.g. a sample of those for form input elements:  Autocomplete  Autofocus  Placeholder  Max  Min  required
  • 9. A WARNING  Major HTML features such as <header> are supported in all modern browsers  Before using more esoteric HTML5 feature make sure it is supported by target browsers…. more to come  http://fmbip.com/litmus/
  • 10. HTML5 WEB STORAGE  Better than cookies  Stored in browser  Local Storage - No expiration date  Session Storage – Stored for session  Beware – malware is misusing, some mobile malware installs ‘local storage’ user cannot get rid of
  • 11. LOCAL SQL DATABASE  Uses local SQL dB often free SQLLite dB  Firefox opposed and will not support  IE does not support  W3C API for javascript queries to dB  Place SQL directly into javascript  E.g. executeSQL() method:
  • 12. db.readTransaction(function (t) { t.executeSql('SELECT title, author FROM docs WHERE id=?', [id], function (t, data) { report(data.rows[0].title, data.rows[0].author); }); });
  • 13. HTML5 OFFLINE WEB APPLICATIONS  Designed to be used offline (what?)  Download content when user is online for browsing and use when offline  Uses HTML5 cache manifest  <!DOCTYPE html>  <html manifest="/cache.manifest">  <body>  ...  </body>  </html>
  • 14.  Sample cache manifest file CACHE MANIFEST NETWORK: /tracking.cgi CACHE: /clock.css /clock.js /clock-face.jpg
  • 15. CSS3  Intertwined with HTML5  Many new features  E.g.  Rounded corners  CSS animations  Text and box shadows  Again watch out for browser support
  • 16. CSS3 MEDIA QUERIES  Media query is CSS3 which checks browser resolution and applies css if resolution meets criteria e.g.: @media screen and (max-width: 600px) { .class { background: #ccc; } } @media screen and (min-width: 900px) { .class { background: #666; } }  Very important in mobile development
  • 17.  Instant HTML5 template with good practices  Well tried and tested  Designed to work with JQuery  Uses normalize.css  Makes browsers render html5 consistently  Corrects common bugs  Modernizr.js  Detects HTML5 and CSS3 browser capabilities
  • 18. POLYFILLS  Modernizr automatically enables html5 layout elements in IE6/7/8  For other incompatibilities you must use polyfills – there are plenty available on web  Each polyfill slows down the page load so use with caution  Polyfills do javascript emulation of features like geolocation on older browsers
  • 19. Modernizr.load({ test: Modernizr.geolocation, yep : 'geo.js', nope: 'geo-polyfill.js' });  Above modernizr code checks for geolocation and loads different javascripts depending on support status  Polyfills for modernizr are a cottage industry with lots available
  • 20. LESS CSS  On big apps the css to produce the same effect can be repeated many times e.g. green button with round corners  CSS often breaks the DRY principle  LESS enables snippets of CSS to be reused  LESS can either be interpreted at runtime or there is an Adobe AIR app called Crunch to ‘compile’ to CSS
  • 24. CRUNCH – COMPILER FOR LESS Compiles LESS into minified CSS
  • 25. FINAL THOUGHTS OF CHAIRMAN GRAHAM  Use minified CSS & JS for mobile  Several online minifiers  Also can combine CSS and JS – quicker to load one combined script than several smaller ones
  • 26. BEDTIME BROWSING  http://lesscss.org/  http://html5boilerplate.com/  http://crunchapp.net/  http://necolas.github.io/normalize.css/  http://modernizr.com/
  • 27. SOME WELL KNOWN HTML5 SITES  http://beta.theexpressiveweb.com/  http://grischek.com/  http://jamfactory.com.au/40years/  https://twitter.com/