SlideShare uma empresa Scribd logo
1 de 27
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/

Mais conteúdo relacionado

Mais procurados

Jaggery Introductory Webinar
Jaggery Introductory WebinarJaggery Introductory Webinar
Jaggery Introductory WebinarNuwan Bandara
 
Club website demo
Club website demoClub website demo
Club website demoblstov
 
WordPress development checklist
WordPress development checklistWordPress development checklist
WordPress development checklistBinh Quan Duc
 
Chrome extension development
Chrome extension developmentChrome extension development
Chrome extension developmentMichal Haták
 
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 #17GreeceJS
 
Bundle Splitting in Volto
Bundle Splitting in VoltoBundle Splitting in Volto
Bundle Splitting in VoltoPloneFoundation
 
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 - IntroductionTekno 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 linkedinRuhaim 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 GebMarkus Schlichting
 
An Introduction to Umbraco
An Introduction to UmbracoAn Introduction to Umbraco
An Introduction to UmbracoJeremy 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 ofSayed 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 #17GreeceJS
 

Mais procurados (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
 

Destaque

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
 
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
 
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
 
M C Squared - New Project Brochure
M C Squared - New Project BrochureM C Squared - New Project Brochure
M C Squared - New Project BrochureMCSquaredProject
 
Personal branding project
Personal branding projectPersonal branding project
Personal branding projecttali92
 
戦略テーマ設定シート
戦略テーマ設定シート戦略テーマ設定シート
戦略テーマ設定シートMaki Omori
 
Mercado Livre Experience - Matias Gualino
Mercado Livre Experience - Matias GualinoMercado Livre Experience - Matias Gualino
Mercado Livre Experience - Matias GualinoMatii Gualino
 

Destaque (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
 

Semelhante a 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_javascriptTimothy Oxley
 
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 introductionMichael 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 HTML5Todd Anglin
 
EdTechJoker Spring 2020 - Lecture 4 - HTML
EdTechJoker Spring 2020 - Lecture 4 - HTMLEdTechJoker Spring 2020 - Lecture 4 - HTML
EdTechJoker Spring 2020 - Lecture 4 - HTMLBryan Ollendyke
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Sadaaki HIRAI
 
HTML / CSS / JS Web basics
HTML / CSS / JS Web basicsHTML / CSS / JS Web basics
HTML / CSS / JS Web basicsbtopro
 
Intro to mobile web application development
Intro to mobile web application developmentIntro to mobile web application development
Intro to mobile web application developmentzonathen
 
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 2011Timothy Fisher
 
Websites Unlimited - Pay Monthly Websites
Websites Unlimited - Pay Monthly WebsitesWebsites Unlimited - Pay Monthly Websites
Websites Unlimited - Pay Monthly Websiteswebsiteunlimited
 
DrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizingDrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizingAshok 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
 
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 08Abdul Qabiz
 

Semelhante a 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
 

Último

Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girlsstephieert
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Sheetaleventcompany
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts servicevipmodelshub1
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)Damian Radcliffe
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girladitipandeya
 
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...APNIC
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsThierry TROUIN ☁
 
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Roomishabajaj13
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Roomdivyansh0kumar0
 
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607dollysharma2066
 
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.soniya singh
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$kojalkojal131
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGAPNIC
 
Low Rate Call Girls Kolkata Avani 🤌 8250192130 🚀 Vip Call Girls Kolkata
Low Rate Call Girls Kolkata Avani 🤌  8250192130 🚀 Vip Call Girls KolkataLow Rate Call Girls Kolkata Avani 🤌  8250192130 🚀 Vip Call Girls Kolkata
Low Rate Call Girls Kolkata Avani 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 

Último (20)

Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girls
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
 
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with Flows
 
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
 
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
 
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOG
 
Low Rate Call Girls Kolkata Avani 🤌 8250192130 🚀 Vip Call Girls Kolkata
Low Rate Call Girls Kolkata Avani 🤌  8250192130 🚀 Vip Call Girls KolkataLow Rate Call Girls Kolkata Avani 🤌  8250192130 🚀 Vip Call Girls Kolkata
Low Rate Call Girls Kolkata Avani 🤌 8250192130 🚀 Vip Call Girls Kolkata
 

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/