ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
HTML5 and CSS3- One UI for All
Mobile Phone Form Factors
Puneet Kumar, Mobile Team, IFS
Intuit Proprietary & Confidential
2
Agenda
?HTML5 Crash course(20min)
?CSS3 Crash course(10min)
?Responsive Design(10 min)
¨C Problem definition
¨C Current Solution
¨C Proposed Solution
¨C How can Responsive Design help!
Intuit Proprietary & Confidential
Logistics
? This presentation is Part 1 of HTML/CSS Workshop at
TechForum, Intuit, Feb 21, 2012
? This presentation at Brainstorm:
https://intuit.intuitbrainstorm.com/Idea.aspx?
id=11398
? Q&A, at the end
? Post questions to
http://tiles.intuit.com/tiles/site/tile/HTML5#
3
Intuit Proprietary & Confidential
HTML5, Crash Course
4
Intuit Proprietary & Confidential
HTML5 Features
? New Doctype
? Semantic Tags
? Forms, new input types
? Video, Audio
? Canvas
? Web Storage
? Offline
? Web Workers
? GeoLocation
? Drag and drop
5
Many cool features to explore
Intuit Proprietary & Confidential
HTML5, New Doctype
? <!DOCTYPE html>
6
<!DOCTYPE html>
Benefit:
Simple.
? <!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Trans
itional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
Intuit Proprietary & Confidential
HTML5, Semantic tags
? <header>
? <hgroup>
? <article>
? <section>
? <aside>
? <footer>
? <nav>
7
Better than <div>
Benefit:
Human readable
HTML pages.
Intuit Proprietary & Confidential8
HTML4 HTML5
HTML5, Semantic tags
#.header{¡­}
#.navigator{¡­}
#.sidebar{¡­}
CSS: CSS:
header{¡­}
nav {¡­}
aside{¡­}
Semantic
Intuit Proprietary & Confidential
HTML5, Forms, new input types
? <input type=email>
? <input type=url>
? <input type=date>
? <input type=time>
? <input type=datetime>
? <input type=month>
? <input type=week>
? <input type=number>
? <input type=tel>
? <input type=color>
? <input pattern=¡°[0-9][A-Z]{3}¡±>
9
<input type= >
Benefit:
Built in
validation.
Intuit Proprietary & Confidential
HTML5, Forms, new input types
? <form action="" method="get">
<label for=¡±tel">type:tel</label>
<input id=¡±tel" name=¡±tel" type=¡±tel" />
<button type="submit"> Submit Form </button>
</form>
? <ul contenteditable=¡°true¡±>
<li>First</li>
</ul>
10
<input type=¡°tel¡±> will show number pad
Intuit Proprietary & Confidential
HTML5, <video> <audio>
?video controls preload>
<source src=/slideshow/html5-v3/25292938/"cohagenPhoneCall.ogv" type="video/ogg; cod
ecs='vorbis, theora'" />
<source src="cohagenPhoneCall.mp4" type="video/mp4; 'c
odecs='avc1.42E01E, mp4a.40.2'" />
<p> Your browser is old. <a href="cohagenPhoneCall.mp4"
>Download this video instead.</a> </p>
</video>
11
<video> <audio>
Benefit:
Flash killer?
Intuit Proprietary & Confidential
HTML5, Canvas
? <canvas></canvas>
? Dynamic rendering of 2D
shapes and bitmap images.
12
<canvas>
Benefit:
2D Games!
Intuit Proprietary & Confidential
HTML5, Canvas
? <canvas id=¡°ex¡± width=¡°200¡± height=¡°200¡±>
? var ctx = document.getElementById(¡®ex¡¯).getContext(¡®2d¡¯);
ctx.fillRect(10,20,50,50); //Paints rectangle (x,y,w,h)
ctx.strokeStyle=¡®rgb(0,255,0)¡¯;
ctx.lineWidth= 5;
ctx.strokeRect(9,19,52,52);
? gradient = ctx.createLinearGradient(0,0,0,canvas.height);
gradient.addColorStop(0,¡±#fff¡±);
gradient.addColorStop(1,¡±000¡±);
ctx.fillStyle = gradient;
? https://developer.mozilla.org/en/Canvas_tutorial/Basic_usage
13
Intuit Proprietary & Confidential
HTML5, Web Storage
? Web Storage- key value
¨C localStorage
¨C sessionStorage
¨C .setItem(¡®data¡¯, 12);
¨C .getItem(¡®data¡¯);
¨C .removeItem(¡®data¡¯)
¨C .clear()
¨C sessionStorage.length
¨C sessionStorage.key(i)
¨C Trap: Stored as Strings!
14
Better than cookies
Benefit:
Cookies on
steroids
Intuit Proprietary & Confidential
HTML5, Web SQL database
? Web SQL Storage- SQL database
? var db;
if(window.openDatabase){
db = openDatabase(¡®myDB¡¯, ¡®1.0¡¯, ¡®test db¡¯, 2 *1024 *1024);
db.transaction(function (tx) {
tx.executeSql(¡®CREATE TABLE IF NOT EXISTS test(id, date, testdata)¡¯,
[], function(){
)};//executeSql
)};//db.transaction
}
15
SQL syntax
Benefit:
Database in
Browser!
Intuit Proprietary & Confidential
HTML5, Offline
? Offline
? Application works even after network connectivity is
lost.
? Manifest file needs to know what to cache.
? <html manifest=¡°/time.manifest¡±>
? Apache mimes.types:
¨C text/cache-manifest manifest
16
No network, no problem
Intuit Proprietary & Confidential
HTML5, Web Workers
? Web workers
? var worker=new Worker(¡°myworker.js¡±);
worker.postMessage(¡°hello¡±);
worker.onMessage = function(event){
alert(¡®The worker sent ¡¯ + event.data);
};
//In myworker.js:
onmessage = function(event){
if(event.data == ¡°hello¡±){
postMessage(¡°hello main¡±)
}else{
postMessage(¡°Busy right now!¡±);
}
}
17
multi threading
Benefit:
Responsive
pages
Intuit Proprietary & Confidential
HTML5, Geolocation
.Found You!
?if(navigator.geolocation){
¨C navigator.geolocation.getCurrentPosition(function(position){
var coord = position.coords;
showMap(coords.latitude, coords.longitude, coords.accuracy);
¨C });
}
?.watchPosition();
?.clearPosition();
18
geolocation
Intuit Proprietary & Confidential
CSS3
? CSS3 offers a huge variety of new ways to create an
impact with your designs.
? CSS 3 too has made its mark with its many features not
only augment the aesthetic appeal but also improve
functionality.
? Style your HTML markup using drop shadows, rounded
corners, multiple backgrounds, animation,
transparency.
? http://css3test.com/
? http://www.css3.info/preview/
19
Intuit Proprietary & Confidential
CSS3
? Borders
¨C border-radius
¨C box-shadow
? Background
¨C background-size
¨C background-origin
? Text Wrap
¨C text-shadow
¨C text-wrap
? @Font-face
? Transforms
¨C transform
¨C rotateX() rotateY()
20
Intuit Proprietary & Confidential
CSS3
? Transitions
? Animations
? User Interface
¨C resize
? Color
¨C opacity
? Ruby
21
Intuit Proprietary & Confidential
Responsive Design
? http://www.readwriteweb.com/archives/redux_how_the_boston_gl
obe_pulled_off_html5_responsive_d.php
22
Intuit Proprietary & Confidential23
Problem Definition
? Mobile phones have different widths
? Use Case
¨C Mobile Browsers with different form factor request mobile
page
¨C On Mobile Web server, User Agent is found
¨C DRS finds width of phone based on User Agent
¨C One of many style sheets is chosen(different widths,
Blackberry)
¨C Mobile page is styled
¨C Mobile Page presented to end user.
? Optimal?
¨C Multiple style sheets, more processing, multiple images,
Should we create multiple css files for different
mobile sizes
Intuit Proprietary & Confidential
Current Solution, Device Recognition Software
24
User Agent String
Https Request
Device Width etc
176
css
240
css
320
css
480
css
320
css
Black
berry
DRS Server
W
hich
css?
Mobile web page
DRS(http://tiles.intuit.com/tiles/site/tile/DRS)
Intuit Proprietary & Confidential
Current Solution, Defects
25
Bigger css applied Smaller css applied
Intuit Proprietary & Confidential26
Proposed Solution
? Use Case
¨C Mobile Browsers, with different widths, request mobile
page
¨C Flexible Mobile Page presented to end user.
? How?
¨C HTML5
¨C CSS3
¨C Responsive Design
¨C JQuery Mobile
Intuit Proprietary & Confidential
Proposed Solution, Responsive Design
27
Https Request
Responsive css
One
css!
Mobile web page
Responsive Design
Intuit Proprietary & Confidential28
Responsive Design, What is? pg1
? Flexible Grid
¨C Flexible Typesetting, font-size in em
¨C Flexible Grid, width in percentage
¨C Flexible margins and padding, in percentage
? Flexible Images
? Media Queries (CSS3)
font-size=1.25em; width=80%,
margin=5%,;padding 5%;
Intuit Proprietary & Confidential29
Responsive Design, What is? pg2
? Flexible Grid
? Flexible Images
¨C Fluid Images, max-width=100%;
¨C For IE, width=100%;
¨C For IE, use AlphaImageLoader
¨C Use overflow:hidden;
? Media Queries (CSS3)
max-width=100%; overflow:hidden;
Intuit Proprietary & Confidential30
Responsive Design, What is? pg3
? Flexible Grid
? Flexible Images
? Media Queries (CSS3 feature)
¨C media=¡°screen and (min-width:1024px)¡±
¨C CSS3 is not supported?
? Try css-mediaqueries.js
? Try respond.js
media=¡°screen and (min-width:1024px)¡±
Intuit Proprietary & Confidential
Summary
31
Intuit Proprietary & Confidential
References
? http://www.html5rocks.com/en/
? http://html5boilerplate.com/
? http://diveintohtml5.info/
? http://caniuse.com/
? http://net.tutsplus.com/tutorials/html-css-
techniques/25-html5-features-tips-and-techniques-
you-must-know/
? http://jsbin.com/
? http://html5demos.com/
32
Intuit Proprietary & Confidential33
Q & A
Ad

More Related Content

Viewers also liked (6)

???? ??? Crm ????
???? ??? Crm   ???????? ??? Crm   ????
???? ??? Crm ????
Shelegcrm
?
Im alive
Im aliveIm alive
Im alive
¦¤¦Ç¦Ì?¦Ó¦Ñ¦Ç? ¦²¦Á¦Ì¦Á¦Ñ??
?
Bab 2 koordinasi badan
Bab 2 koordinasi badanBab 2 koordinasi badan
Bab 2 koordinasi badan
Ella Samad
?

Similar to Html5 CSS3 (20)

Mobile Web Development with HTML5
Mobile Web Development with HTML5Mobile Web Development with HTML5
Mobile Web Development with HTML5
Roy Clarkson
?
HTML5_elementos nuevos integrados ahora
HTML5_elementos  nuevos integrados ahoraHTML5_elementos  nuevos integrados ahora
HTML5_elementos nuevos integrados ahora
mano21161
?
Silverlight 5
Silverlight 5Silverlight 5
Silverlight 5
Jeremy Likness
?
Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere
Chris Love
?
Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)
Tirthesh Ganatra
?
HTML5: An Overview
HTML5: An OverviewHTML5: An Overview
HTML5: An Overview
Nagendra Um
?
The Mobile Web Revealed For The Java Developer
The Mobile Web Revealed For The Java DeveloperThe Mobile Web Revealed For The Java Developer
The Mobile Web Revealed For The Java Developer
balunasj
?
Curtin University Frontend Web Development
Curtin University Frontend Web DevelopmentCurtin University Frontend Web Development
Curtin University Frontend Web Development
Daryll Chu
?
Html5 more than just html5 v final
Html5  more than just html5 v finalHtml5  more than just html5 v final
Html5 more than just html5 v final
Lohith Goudagere Nagaraj
?
Programming iOS in C#
Programming iOS in C#Programming iOS in C#
Programming iOS in C#
Frank Krueger
?
There Is No Mobile: An Introduction To Responsive Web Design
There Is No Mobile: An Introduction To Responsive Web DesignThere Is No Mobile: An Introduction To Responsive Web Design
There Is No Mobile: An Introduction To Responsive Web Design
Chris Love
?
Multi screen HTML5
Multi screen HTML5Multi screen HTML5
Multi screen HTML5
Ron Reiter
?
Let's dig into the Omega Theme!
Let's dig into the Omega Theme!Let's dig into the Omega Theme!
Let's dig into the Omega Theme!
Mediacurrent
?
Resume
ResumeResume
Resume
Tariq Hussain
?
Rwd slidedeck
Rwd slidedeckRwd slidedeck
Rwd slidedeck
Vera Kovaleva
?
Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.
GaziAhsan
?
Responsive Web Design - Web & PHP Conference - 2013-09-18
Responsive Web Design - Web & PHP Conference - 2013-09-18Responsive Web Design - Web & PHP Conference - 2013-09-18
Responsive Web Design - Web & PHP Conference - 2013-09-18
Fr¨¦d¨¦ric Harper
?
Devon 2011-f-1 ??? ? ???
Devon 2011-f-1  ??? ? ???Devon 2011-f-1  ??? ? ???
Devon 2011-f-1 ??? ? ???
Daum DNA
?
Introduction to HTML5 & CSS3
Introduction to HTML5 & CSS3Introduction to HTML5 & CSS3
Introduction to HTML5 & CSS3
g4gauravagarwal
?
VizEx View HTML5 workshop 2017
VizEx View HTML5 workshop 2017VizEx View HTML5 workshop 2017
VizEx View HTML5 workshop 2017
Larson Software Technology
?
Mobile Web Development with HTML5
Mobile Web Development with HTML5Mobile Web Development with HTML5
Mobile Web Development with HTML5
Roy Clarkson
?
HTML5_elementos nuevos integrados ahora
HTML5_elementos  nuevos integrados ahoraHTML5_elementos  nuevos integrados ahora
HTML5_elementos nuevos integrados ahora
mano21161
?
Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere
Chris Love
?
Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)
Tirthesh Ganatra
?
The Mobile Web Revealed For The Java Developer
The Mobile Web Revealed For The Java DeveloperThe Mobile Web Revealed For The Java Developer
The Mobile Web Revealed For The Java Developer
balunasj
?
Curtin University Frontend Web Development
Curtin University Frontend Web DevelopmentCurtin University Frontend Web Development
Curtin University Frontend Web Development
Daryll Chu
?
There Is No Mobile: An Introduction To Responsive Web Design
There Is No Mobile: An Introduction To Responsive Web DesignThere Is No Mobile: An Introduction To Responsive Web Design
There Is No Mobile: An Introduction To Responsive Web Design
Chris Love
?
Multi screen HTML5
Multi screen HTML5Multi screen HTML5
Multi screen HTML5
Ron Reiter
?
Let's dig into the Omega Theme!
Let's dig into the Omega Theme!Let's dig into the Omega Theme!
Let's dig into the Omega Theme!
Mediacurrent
?
Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.
GaziAhsan
?
Responsive Web Design - Web & PHP Conference - 2013-09-18
Responsive Web Design - Web & PHP Conference - 2013-09-18Responsive Web Design - Web & PHP Conference - 2013-09-18
Responsive Web Design - Web & PHP Conference - 2013-09-18
Fr¨¦d¨¦ric Harper
?
Devon 2011-f-1 ??? ? ???
Devon 2011-f-1  ??? ? ???Devon 2011-f-1  ??? ? ???
Devon 2011-f-1 ??? ? ???
Daum DNA
?
Introduction to HTML5 & CSS3
Introduction to HTML5 & CSS3Introduction to HTML5 & CSS3
Introduction to HTML5 & CSS3
g4gauravagarwal
?
Ad

More from Puneet Kumar (7)

Quick Scala
Quick ScalaQuick Scala
Quick Scala
Puneet Kumar
?
Robotics using EV3 Introduction
Robotics using EV3 Introduction Robotics using EV3 Introduction
Robotics using EV3 Introduction
Puneet Kumar
?
Chess1
Chess1Chess1
Chess1
Puneet Kumar
?
Android accessibility
Android accessibilityAndroid accessibility
Android accessibility
Puneet Kumar
?
Nagios
NagiosNagios
Nagios
Puneet Kumar
?
System adm
System admSystem adm
System adm
Puneet Kumar
?
Bitcoin
BitcoinBitcoin
Bitcoin
Puneet Kumar
?
Ad

Recently uploaded (20)

Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
?
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
?
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
?
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Raffi Khatchadourian
?
TrsLabs - Leverage the Power of UPI Payments
TrsLabs - Leverage the Power of UPI PaymentsTrsLabs - Leverage the Power of UPI Payments
TrsLabs - Leverage the Power of UPI Payments
Trs Labs
?
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
?
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
?
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
?
AsyncAPI v3 : Streamlining Event-Driven API Design
AsyncAPI v3 : Streamlining Event-Driven API DesignAsyncAPI v3 : Streamlining Event-Driven API Design
AsyncAPI v3 : Streamlining Event-Driven API Design
leonid54
?
5kW Solar System in India ¨C Cost, Benefits & Subsidy 2025
5kW Solar System in India ¨C Cost, Benefits & Subsidy 20255kW Solar System in India ¨C Cost, Benefits & Subsidy 2025
5kW Solar System in India ¨C Cost, Benefits & Subsidy 2025
Ksquare Energy Pvt. Ltd.
?
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
?
The Future of Cisco Cloud Security: Innovations and AI Integration
The Future of Cisco Cloud Security: Innovations and AI IntegrationThe Future of Cisco Cloud Security: Innovations and AI Integration
The Future of Cisco Cloud Security: Innovations and AI Integration
Re-solution Data Ltd
?
MINDCTI revenue release Quarter 1 2025 PR
MINDCTI revenue release Quarter 1 2025 PRMINDCTI revenue release Quarter 1 2025 PR
MINDCTI revenue release Quarter 1 2025 PR
MIND CTI
?
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
?
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
?
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
?
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
?
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
?
GyrusAI - Broadcasting & Streaming Applications Driven by AI and ML
GyrusAI - Broadcasting & Streaming Applications Driven by AI and MLGyrusAI - Broadcasting & Streaming Applications Driven by AI and ML
GyrusAI - Broadcasting & Streaming Applications Driven by AI and ML
Gyrus AI
?
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
?
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
?
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
?
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
?
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Raffi Khatchadourian
?
TrsLabs - Leverage the Power of UPI Payments
TrsLabs - Leverage the Power of UPI PaymentsTrsLabs - Leverage the Power of UPI Payments
TrsLabs - Leverage the Power of UPI Payments
Trs Labs
?
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
?
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
?
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
?
AsyncAPI v3 : Streamlining Event-Driven API Design
AsyncAPI v3 : Streamlining Event-Driven API DesignAsyncAPI v3 : Streamlining Event-Driven API Design
AsyncAPI v3 : Streamlining Event-Driven API Design
leonid54
?
5kW Solar System in India ¨C Cost, Benefits & Subsidy 2025
5kW Solar System in India ¨C Cost, Benefits & Subsidy 20255kW Solar System in India ¨C Cost, Benefits & Subsidy 2025
5kW Solar System in India ¨C Cost, Benefits & Subsidy 2025
Ksquare Energy Pvt. Ltd.
?
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
?
The Future of Cisco Cloud Security: Innovations and AI Integration
The Future of Cisco Cloud Security: Innovations and AI IntegrationThe Future of Cisco Cloud Security: Innovations and AI Integration
The Future of Cisco Cloud Security: Innovations and AI Integration
Re-solution Data Ltd
?
MINDCTI revenue release Quarter 1 2025 PR
MINDCTI revenue release Quarter 1 2025 PRMINDCTI revenue release Quarter 1 2025 PR
MINDCTI revenue release Quarter 1 2025 PR
MIND CTI
?
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
?
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
?
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
?
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
?
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
?
GyrusAI - Broadcasting & Streaming Applications Driven by AI and ML
GyrusAI - Broadcasting & Streaming Applications Driven by AI and MLGyrusAI - Broadcasting & Streaming Applications Driven by AI and ML
GyrusAI - Broadcasting & Streaming Applications Driven by AI and ML
Gyrus AI
?
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
?

Html5 CSS3

  • 1. HTML5 and CSS3- One UI for All Mobile Phone Form Factors Puneet Kumar, Mobile Team, IFS
  • 2. Intuit Proprietary & Confidential 2 Agenda ?HTML5 Crash course(20min) ?CSS3 Crash course(10min) ?Responsive Design(10 min) ¨C Problem definition ¨C Current Solution ¨C Proposed Solution ¨C How can Responsive Design help!
  • 3. Intuit Proprietary & Confidential Logistics ? This presentation is Part 1 of HTML/CSS Workshop at TechForum, Intuit, Feb 21, 2012 ? This presentation at Brainstorm: https://intuit.intuitbrainstorm.com/Idea.aspx? id=11398 ? Q&A, at the end ? Post questions to http://tiles.intuit.com/tiles/site/tile/HTML5# 3
  • 4. Intuit Proprietary & Confidential HTML5, Crash Course 4
  • 5. Intuit Proprietary & Confidential HTML5 Features ? New Doctype ? Semantic Tags ? Forms, new input types ? Video, Audio ? Canvas ? Web Storage ? Offline ? Web Workers ? GeoLocation ? Drag and drop 5 Many cool features to explore
  • 6. Intuit Proprietary & Confidential HTML5, New Doctype ? <!DOCTYPE html> 6 <!DOCTYPE html> Benefit: Simple. ? <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Trans itional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd">
  • 7. Intuit Proprietary & Confidential HTML5, Semantic tags ? <header> ? <hgroup> ? <article> ? <section> ? <aside> ? <footer> ? <nav> 7 Better than <div> Benefit: Human readable HTML pages.
  • 8. Intuit Proprietary & Confidential8 HTML4 HTML5 HTML5, Semantic tags #.header{¡­} #.navigator{¡­} #.sidebar{¡­} CSS: CSS: header{¡­} nav {¡­} aside{¡­} Semantic
  • 9. Intuit Proprietary & Confidential HTML5, Forms, new input types ? <input type=email> ? <input type=url> ? <input type=date> ? <input type=time> ? <input type=datetime> ? <input type=month> ? <input type=week> ? <input type=number> ? <input type=tel> ? <input type=color> ? <input pattern=¡°[0-9][A-Z]{3}¡±> 9 <input type= > Benefit: Built in validation.
  • 10. Intuit Proprietary & Confidential HTML5, Forms, new input types ? <form action="" method="get"> <label for=¡±tel">type:tel</label> <input id=¡±tel" name=¡±tel" type=¡±tel" /> <button type="submit"> Submit Form </button> </form> ? <ul contenteditable=¡°true¡±> <li>First</li> </ul> 10 <input type=¡°tel¡±> will show number pad
  • 11. Intuit Proprietary & Confidential HTML5, <video> <audio> ?video controls preload> <source src=/slideshow/html5-v3/25292938/"cohagenPhoneCall.ogv" type="video/ogg; cod ecs='vorbis, theora'" /> <source src="cohagenPhoneCall.mp4" type="video/mp4; 'c odecs='avc1.42E01E, mp4a.40.2'" /> <p> Your browser is old. <a href="cohagenPhoneCall.mp4" >Download this video instead.</a> </p> </video> 11 <video> <audio> Benefit: Flash killer?
  • 12. Intuit Proprietary & Confidential HTML5, Canvas ? <canvas></canvas> ? Dynamic rendering of 2D shapes and bitmap images. 12 <canvas> Benefit: 2D Games!
  • 13. Intuit Proprietary & Confidential HTML5, Canvas ? <canvas id=¡°ex¡± width=¡°200¡± height=¡°200¡±> ? var ctx = document.getElementById(¡®ex¡¯).getContext(¡®2d¡¯); ctx.fillRect(10,20,50,50); //Paints rectangle (x,y,w,h) ctx.strokeStyle=¡®rgb(0,255,0)¡¯; ctx.lineWidth= 5; ctx.strokeRect(9,19,52,52); ? gradient = ctx.createLinearGradient(0,0,0,canvas.height); gradient.addColorStop(0,¡±#fff¡±); gradient.addColorStop(1,¡±000¡±); ctx.fillStyle = gradient; ? https://developer.mozilla.org/en/Canvas_tutorial/Basic_usage 13
  • 14. Intuit Proprietary & Confidential HTML5, Web Storage ? Web Storage- key value ¨C localStorage ¨C sessionStorage ¨C .setItem(¡®data¡¯, 12); ¨C .getItem(¡®data¡¯); ¨C .removeItem(¡®data¡¯) ¨C .clear() ¨C sessionStorage.length ¨C sessionStorage.key(i) ¨C Trap: Stored as Strings! 14 Better than cookies Benefit: Cookies on steroids
  • 15. Intuit Proprietary & Confidential HTML5, Web SQL database ? Web SQL Storage- SQL database ? var db; if(window.openDatabase){ db = openDatabase(¡®myDB¡¯, ¡®1.0¡¯, ¡®test db¡¯, 2 *1024 *1024); db.transaction(function (tx) { tx.executeSql(¡®CREATE TABLE IF NOT EXISTS test(id, date, testdata)¡¯, [], function(){ )};//executeSql )};//db.transaction } 15 SQL syntax Benefit: Database in Browser!
  • 16. Intuit Proprietary & Confidential HTML5, Offline ? Offline ? Application works even after network connectivity is lost. ? Manifest file needs to know what to cache. ? <html manifest=¡°/time.manifest¡±> ? Apache mimes.types: ¨C text/cache-manifest manifest 16 No network, no problem
  • 17. Intuit Proprietary & Confidential HTML5, Web Workers ? Web workers ? var worker=new Worker(¡°myworker.js¡±); worker.postMessage(¡°hello¡±); worker.onMessage = function(event){ alert(¡®The worker sent ¡¯ + event.data); }; //In myworker.js: onmessage = function(event){ if(event.data == ¡°hello¡±){ postMessage(¡°hello main¡±) }else{ postMessage(¡°Busy right now!¡±); } } 17 multi threading Benefit: Responsive pages
  • 18. Intuit Proprietary & Confidential HTML5, Geolocation .Found You! ?if(navigator.geolocation){ ¨C navigator.geolocation.getCurrentPosition(function(position){ var coord = position.coords; showMap(coords.latitude, coords.longitude, coords.accuracy); ¨C }); } ?.watchPosition(); ?.clearPosition(); 18 geolocation
  • 19. Intuit Proprietary & Confidential CSS3 ? CSS3 offers a huge variety of new ways to create an impact with your designs. ? CSS 3 too has made its mark with its many features not only augment the aesthetic appeal but also improve functionality. ? Style your HTML markup using drop shadows, rounded corners, multiple backgrounds, animation, transparency. ? http://css3test.com/ ? http://www.css3.info/preview/ 19
  • 20. Intuit Proprietary & Confidential CSS3 ? Borders ¨C border-radius ¨C box-shadow ? Background ¨C background-size ¨C background-origin ? Text Wrap ¨C text-shadow ¨C text-wrap ? @Font-face ? Transforms ¨C transform ¨C rotateX() rotateY() 20
  • 21. Intuit Proprietary & Confidential CSS3 ? Transitions ? Animations ? User Interface ¨C resize ? Color ¨C opacity ? Ruby 21
  • 22. Intuit Proprietary & Confidential Responsive Design ? http://www.readwriteweb.com/archives/redux_how_the_boston_gl obe_pulled_off_html5_responsive_d.php 22
  • 23. Intuit Proprietary & Confidential23 Problem Definition ? Mobile phones have different widths ? Use Case ¨C Mobile Browsers with different form factor request mobile page ¨C On Mobile Web server, User Agent is found ¨C DRS finds width of phone based on User Agent ¨C One of many style sheets is chosen(different widths, Blackberry) ¨C Mobile page is styled ¨C Mobile Page presented to end user. ? Optimal? ¨C Multiple style sheets, more processing, multiple images, Should we create multiple css files for different mobile sizes
  • 24. Intuit Proprietary & Confidential Current Solution, Device Recognition Software 24 User Agent String Https Request Device Width etc 176 css 240 css 320 css 480 css 320 css Black berry DRS Server W hich css? Mobile web page DRS(http://tiles.intuit.com/tiles/site/tile/DRS)
  • 25. Intuit Proprietary & Confidential Current Solution, Defects 25 Bigger css applied Smaller css applied
  • 26. Intuit Proprietary & Confidential26 Proposed Solution ? Use Case ¨C Mobile Browsers, with different widths, request mobile page ¨C Flexible Mobile Page presented to end user. ? How? ¨C HTML5 ¨C CSS3 ¨C Responsive Design ¨C JQuery Mobile
  • 27. Intuit Proprietary & Confidential Proposed Solution, Responsive Design 27 Https Request Responsive css One css! Mobile web page Responsive Design
  • 28. Intuit Proprietary & Confidential28 Responsive Design, What is? pg1 ? Flexible Grid ¨C Flexible Typesetting, font-size in em ¨C Flexible Grid, width in percentage ¨C Flexible margins and padding, in percentage ? Flexible Images ? Media Queries (CSS3) font-size=1.25em; width=80%, margin=5%,;padding 5%;
  • 29. Intuit Proprietary & Confidential29 Responsive Design, What is? pg2 ? Flexible Grid ? Flexible Images ¨C Fluid Images, max-width=100%; ¨C For IE, width=100%; ¨C For IE, use AlphaImageLoader ¨C Use overflow:hidden; ? Media Queries (CSS3) max-width=100%; overflow:hidden;
  • 30. Intuit Proprietary & Confidential30 Responsive Design, What is? pg3 ? Flexible Grid ? Flexible Images ? Media Queries (CSS3 feature) ¨C media=¡°screen and (min-width:1024px)¡± ¨C CSS3 is not supported? ? Try css-mediaqueries.js ? Try respond.js media=¡°screen and (min-width:1024px)¡±
  • 31. Intuit Proprietary & Confidential Summary 31
  • 32. Intuit Proprietary & Confidential References ? http://www.html5rocks.com/en/ ? http://html5boilerplate.com/ ? http://diveintohtml5.info/ ? http://caniuse.com/ ? http://net.tutsplus.com/tutorials/html-css- techniques/25-html5-features-tips-and-techniques- you-must-know/ ? http://jsbin.com/ ? http://html5demos.com/ 32
  • 33. Intuit Proprietary & Confidential33 Q & A

Editor's Notes

  • #8: A browser extension might allow a user to jump straight to the nav with a single keystroke. It can do this because it looks for nav rather than having to employ heuristics to find a div with an id or class that would suggest it¡¯s being used as navigation. A restaurant site with a div called ¡°menu¡± might be a list of foods rather than other pages. A crawler might dynamically assemble articles on a timeline.
  • #14: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#the-canvas-element
  • #25: http://tiles.intuit.com/tiles/site/tile/DRS