SlideShare a Scribd company logo
Using
HTML5 & CSS3
   Today
Where we're at

•   Comfortable with HTML4 or XHTML and CSS2
•   Hearing talk of HTML5 and CSS3
•   Rapidly advancing browsers
•   ...but we've still got IE6
HTML5 and CSS3 are ready

• Dispelling some myths
• How to begin using them today
What HTML5 is

• HTML5 is the next iteration of web page markup
• HTML4 -> XHTML 1 -> XHTML 2 -> HTML5
• Introduces new tags and attributes
   o <header>, <footer>, <nav>, <section>...
   o <input type="email">
• Designed for web apps
• Already understood by all browsers
   o Even IE6!
Myth: It's not done yet

• "The HTML5 spec won't be done until 2012 or 2022"
• Reality: 
   o Browser support is what matters
   o 2022: "Proposed Recommendation"
       Meaningless in a practical sense
   o 2012: "Candidate Recommendation"
       Spec is finished and ready for widespread adoption
   o But it's only 2011...
       ...browser support is what matters.

  o   CSS 2.1 is just now a final spec (2011)
        "Candidate Recommendation" in 2005
Myth: Browsers don't support it

• Reality:
   o Browsers don't support HTML4 or XHTML either -- they
     support a collection of tags and attributes
   o Browsers understand any <tagname>
   o Browsers will ignore HTML tag attributes and CSS
     properties that they don't understand
   o For JavaScript, use object detection or try/catch
   o Unrecognized <input> types are rendered as <input
      type="text">
  o   "The HTML5 specification is really just documenting what browsers already do." -
      HTML5 for Web Designers
Myth: My favorite tag will be obsolete

• Reality:
   o "Obsolete" != "deprecated"
   o Obsolescence is defined by browser support, and always
     has been
   o Alternatives are already in place for obsolete tags
Obsolete tag alternatives

• <font>
   o <span>
• <frame>, <noframe>, <frameset>
   o <iframe>, re-design with <div>s
• <acronym>
   o <abbr>
• tags: <big>, <strike>, <center>
  attributes: bgcolor, cellspacing, cellpadding,
  valign
   o Use CSS
Myth: It can't all be ready, can it?

• Reality: No, you're right, it's not all ready.
• Some elements are in a state of transition and need
  fallbacks (<video>, <canvas>)
• Some APIs are simply not close to being ready
  (WebSockets, form validation)
• However...
   o Cross-platform alternatives and sample fallbacks exist
     today
       offline storage
   o Some can be designed around
       A browser doesn't support geolocation? Ask the user
        for their ZIP code.
How do I start using it?

• <!DOCTYPE html>
• New elements:
   o Modern browsers: header { display: block; }
   o IE: shivs
• Keep your old syntax or adopt a new one
  o   <input type="text" />
  o   <input type="text">
  o   <input type=text>
• CSS3: just use it
   o IE 6-8: css3pie.com
Resources

• HTML5 tag
  list: www.w3schools.com/html5/html5_reference.asp
• CSS3 property list: modernizr.com/docs/
• Feature detection: Modernizr (includes shivs)
• Shivs: code.google.com/p/html5shiv
• html5boilerplate.com -- detailed page structure
• Gradient generator: colorzilla.com/gradient-editor/
• Try it yourself:
  o playground.html5rocks.com
  o css3please.com
• Keep tabs on browser support: caniuse.com
• These links and more: patik.com/html5/

More Related Content

What's hot (13)

PPTX
Web Development Basics: HOW TO in HTML
Der Lo
 
PPTX
What's a web page made of?
Charlie Allen
 
PPTX
Ui devopler
Janu Jahnavi
 
KEY
Html5
Satoshi Kikuchi
 
PPTX
Introduction to HTML5 and CSS3 (revised)
Joseph Lewis
 
PDF
JavaScript debugging diagnostic web tools and firefox
Gennady Feldman
 
ZIP
Html5 public
doodlemoonch
 
PDF
Real World Web components
Jarrod Overson
 
PPT
Advance Css
vijayta
 
PPT
Advance Css 1194323118268797 5
dharshyamal
 
PPT
Web development basics (Part-1)
Rajat Pratap Singh
 
ODP
Web design using html
ElsaS7
 
PDF
CSS Best practice
Russ Weakley
 
Web Development Basics: HOW TO in HTML
Der Lo
 
What's a web page made of?
Charlie Allen
 
Ui devopler
Janu Jahnavi
 
Introduction to HTML5 and CSS3 (revised)
Joseph Lewis
 
JavaScript debugging diagnostic web tools and firefox
Gennady Feldman
 
Html5 public
doodlemoonch
 
Real World Web components
Jarrod Overson
 
Advance Css
vijayta
 
Advance Css 1194323118268797 5
dharshyamal
 
Web development basics (Part-1)
Rajat Pratap Singh
 
Web design using html
ElsaS7
 
CSS Best practice
Russ Weakley
 

Viewers also liked (6)

PDF
Hutten Mvo Magazine 2011
Collin_S
 
PPT
豊洲スマートシティ
優一 佐藤
 
PPT
循環バイオマス型都市
優一 佐藤
 
PDF
参加の手引き(β版)
優一 佐藤
 
PDF
Ysj2012 第4の革命
優一 佐藤
 
PDF
「Callingood(コーリングッド)」
優一 佐藤
 
Hutten Mvo Magazine 2011
Collin_S
 
豊洲スマートシティ
優一 佐藤
 
循環バイオマス型都市
優一 佐藤
 
参加の手引き(β版)
優一 佐藤
 
Ysj2012 第4の革命
優一 佐藤
 
「Callingood(コーリングッド)」
優一 佐藤
 
Ad

Similar to Html5 (20)

PPTX
New Web Revolution - html5 and css3
Nitish Surelia
 
PPT
html5 css3 the future of web technology
hazzaz
 
PPTX
Html5 with SharePoint 2010
Hemant Joshi
 
KEY
HTML5 History & Features
Dave Ross
 
PPTX
Chapter 2 introduction to html5
nobel mujuji
 
KEY
The web standards gentleman: a matter of (evolving) standards)
Chris Mills
 
PPTX
Html,CSS & UI/UX design
Karthikeyan Dhanasekaran CUA
 
PDF
HTML5--The 30,000' View (A fast-paced overview of HTML5)
Peter Lubbers
 
PDF
Html5 Flyover
Skills Matter
 
PPTX
Html5 today
Roy Yu
 
PDF
HTML5, just another presentation :)
François Massart
 
PPTX
HTML5
Ana AbdElzaher
 
PPT
Is it time to start using HTML 5
Ravi Raj
 
KEY
WHAT IS HTML5? (at CSS Nite Osaka)
Shumpei Shiraishi
 
PDF
Html5 n css3
Jindal Gohil
 
PPTX
HTML5 and Joomla! 2.5 Template
Marvelic Engine Co., Ltd.
 
PPTX
Html5 shubelal
Shub
 
KEY
Screw HTML5, make cool shit with AIR
Eric Fickes
 
PPT
HTML 5 Complete Reference
EPAM Systems
 
New Web Revolution - html5 and css3
Nitish Surelia
 
html5 css3 the future of web technology
hazzaz
 
Html5 with SharePoint 2010
Hemant Joshi
 
HTML5 History & Features
Dave Ross
 
Chapter 2 introduction to html5
nobel mujuji
 
The web standards gentleman: a matter of (evolving) standards)
Chris Mills
 
Html,CSS & UI/UX design
Karthikeyan Dhanasekaran CUA
 
HTML5--The 30,000' View (A fast-paced overview of HTML5)
Peter Lubbers
 
Html5 Flyover
Skills Matter
 
Html5 today
Roy Yu
 
HTML5, just another presentation :)
François Massart
 
Is it time to start using HTML 5
Ravi Raj
 
WHAT IS HTML5? (at CSS Nite Osaka)
Shumpei Shiraishi
 
Html5 n css3
Jindal Gohil
 
HTML5 and Joomla! 2.5 Template
Marvelic Engine Co., Ltd.
 
Html5 shubelal
Shub
 
Screw HTML5, make cool shit with AIR
Eric Fickes
 
HTML 5 Complete Reference
EPAM Systems
 
Ad

Recently uploaded (20)

PPTX
THE TAME BIRD AND THE FREE BIRD.pptxxxxx
MarcChristianNicolas
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PDF
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PPTX
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPTX
grade 5 lesson ENGLISH 5_Q1_PPT_WEEK3.pptx
SireQuinn
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PDF
SSHS-2025-PKLP_Quarter-1-Dr.-Kerby-Alvarez.pdf
AishahSangcopan1
 
PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PPSX
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
THE TAME BIRD AND THE FREE BIRD.pptxxxxx
MarcChristianNicolas
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
community health nursing question paper 2.pdf
Prince kumar
 
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
grade 5 lesson ENGLISH 5_Q1_PPT_WEEK3.pptx
SireQuinn
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
SSHS-2025-PKLP_Quarter-1-Dr.-Kerby-Alvarez.pdf
AishahSangcopan1
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 

Html5

  • 2. Where we're at • Comfortable with HTML4 or XHTML and CSS2 • Hearing talk of HTML5 and CSS3 • Rapidly advancing browsers • ...but we've still got IE6
  • 3. HTML5 and CSS3 are ready • Dispelling some myths • How to begin using them today
  • 4. What HTML5 is • HTML5 is the next iteration of web page markup • HTML4 -> XHTML 1 -> XHTML 2 -> HTML5 • Introduces new tags and attributes o <header>, <footer>, <nav>, <section>... o <input type="email"> • Designed for web apps • Already understood by all browsers o Even IE6!
  • 5. Myth: It's not done yet • "The HTML5 spec won't be done until 2012 or 2022" • Reality:  o Browser support is what matters o 2022: "Proposed Recommendation"  Meaningless in a practical sense o 2012: "Candidate Recommendation"  Spec is finished and ready for widespread adoption o But it's only 2011...  ...browser support is what matters. o CSS 2.1 is just now a final spec (2011)  "Candidate Recommendation" in 2005
  • 6. Myth: Browsers don't support it • Reality: o Browsers don't support HTML4 or XHTML either -- they support a collection of tags and attributes o Browsers understand any <tagname> o Browsers will ignore HTML tag attributes and CSS properties that they don't understand o For JavaScript, use object detection or try/catch o Unrecognized <input> types are rendered as <input type="text"> o "The HTML5 specification is really just documenting what browsers already do." - HTML5 for Web Designers
  • 7. Myth: My favorite tag will be obsolete • Reality: o "Obsolete" != "deprecated" o Obsolescence is defined by browser support, and always has been o Alternatives are already in place for obsolete tags
  • 8. Obsolete tag alternatives • <font> o <span> • <frame>, <noframe>, <frameset> o <iframe>, re-design with <div>s • <acronym> o <abbr> • tags: <big>, <strike>, <center> attributes: bgcolor, cellspacing, cellpadding, valign o Use CSS
  • 9. Myth: It can't all be ready, can it? • Reality: No, you're right, it's not all ready. • Some elements are in a state of transition and need fallbacks (<video>, <canvas>) • Some APIs are simply not close to being ready (WebSockets, form validation) • However... o Cross-platform alternatives and sample fallbacks exist today  offline storage o Some can be designed around  A browser doesn't support geolocation? Ask the user for their ZIP code.
  • 10. How do I start using it? • <!DOCTYPE html> • New elements: o Modern browsers: header { display: block; } o IE: shivs • Keep your old syntax or adopt a new one o <input type="text" /> o <input type="text"> o <input type=text> • CSS3: just use it o IE 6-8: css3pie.com
  • 11. Resources • HTML5 tag list: www.w3schools.com/html5/html5_reference.asp • CSS3 property list: modernizr.com/docs/ • Feature detection: Modernizr (includes shivs) • Shivs: code.google.com/p/html5shiv • html5boilerplate.com -- detailed page structure • Gradient generator: colorzilla.com/gradient-editor/ • Try it yourself: o playground.html5rocks.com o css3please.com • Keep tabs on browser support: caniuse.com • These links and more: patik.com/html5/