SlideShare una empresa de Scribd logo
1 de 20
Descargar para leer sin conexión
WHAT IS HTML 5?
“HTML 5” IS A MISCONSEPTION... (sorta)
  For most people, HTML5 is really a branding buzz-word
    gone wild


HTML 5 IS A COLLECTION OF FEATURES...
  What people are calling HTML5 is really a collection of
   W3C specifications and CSS3 standards that enable a
   more expressive experience


WE CAN DROP THE 5...
    The 5 can be confusing, let’s just consider it HTML,
    because that is what it really is
WHAT MAKES UP “NEW” HTML

W3C SPECS AND PROPOSALS...
  The W3C standards board are drafting new
    specifications for HTML tags and features. These
    new features are what makes up part of “HTML5”


CSS3 SPECS AND PROPOSALS...
  CSS3 has (and is) adding new features and
    functionality to browser-based applications
WHY ALL THE HYPE?
EMPOWERING A LARGE SET OF DEVELOPERS...
  The new features of HTML are providing more control,
    expressiveness and capabilities that browser-based
    developers have asked (and) needed for a long time


LOOK MA, NO PLUGINS!!!
  Flash is great, but it’s causing a lot of turmoil in the development
     community (right or wrong). The new HTML features has the
     ability to provide Flash-like (and more) features for any device
     that supports a modern browser


MOBILE, MOBILE EVERYWHERE...
  Mobile devices are driving the market, and they (mostly) have
   modern browsers, enabling a lot of this cool new stuff
WHY SHOULD I CARE?

I <3 FLASH BUT...
  Flash is great, it gives us a lot of power but there are
    limitations
  Let’s be honest... Flash mobile is cool but really not
    there yet and in some cases *cough* iOS *cough* it’s
    not even supported
  Mobile browser are often the most advanced
    browsers in the market
  As Seb Lee-Delisle said:
     “... we are really software programmers.”
LET’S BREAK IT DOWN




     = HTML + CSS3 + JS
HTML SIDE OF THINGS...

NEW DOCTYPE...
  <!DOCTYPE html>!


LOOSER STRUCTRE...
  XHTML required valid XML data, not so with HTML5
     Types are dropped for <script> and <style> tags
     Quotes are optional


EDITABILITY...
  Throw a new attribute (contentEditable) on text items
    and users can now change the values in real-time
HTML SIDE OF THINGS...

BETTER FORMS...
  Placeholder Text
  Autofocus on fields
  Email field Type (helpful for mobile)
  Web address field type (similar to email)
  Number Field (min, max, step & sliders)
  Date Pickers, Search Fields, Color Pickers
  Form Validation
  Required Fields
  Regex Support
HTML SIDE OF THINGS...

VIDEO & AUDIO...
  We now have <video> and <audio> tags
  Codec’s are important:
     Video: H.264, Theora, VP8
     Audio: MPEG-1 Audio Layer 3, AAC, OGG
  Real full-screen video is now available (in Safari 5.1
    on Lion)
HTML SIDE OF THINGS...

CANVAS...
  Bitmap drawing area (low level)
  Software rendered (except in Safari 5.1)
  Performance can be lacking
  No display list, you are just drawing to a bitmap
  Growing set of libraries
     EaselJS (http://easeljs.com/)
     ProcessingJS (http://processingjs.org/)
     Many, many more coming...
CSS SIDE OF THINGS...

CSS IS NOT HTML...
Cascading Style Sheets (CSS) are not considered HTML.
  HTML is the markup, CSS is a separate syntax and
  system that modifies (styles) HTML


CSS3 IS ADDING A LOT OF COOL STUFF
   The new HTML features are more about structure and
     content, CSS3 is more about expression
CSS SIDE OF THINGS...
BORDERS...
    border-color: finer controls over color and color sets
    border-image: use images to create borders
    border-radius: adds the ability to round corners
    box-shadow: create drop shadows and glows



BACKGROUNDS...
    background-origin: defines the background position structure
    background-clip: defines how & where the background
      extends
    background-size: defines the size of the background image
    multiple-backgrounds: allows multiple images to be defined
      and placed
CSS SIDE OF THINGS...

COLOR...
  Support for new color definitions using HSL (Hue,
    Saturation & Light), HSLA (HSLA + Alpha), Opacity
    Controls and RGBA


TEXT EFFECTS...
     text-shadow: define shadows and glows on text
     text-overflow: defines how text should be clipped (...)
     word-wrap: defines when words should be broken and
      wrapped in a constrained box
CSS SIDE OF THINGS...

USER INTERFACE...
     box-sizing: define how box size is calculated
     resize: allow boxes to be resized by the user
     outline: think nested borders


NEW SELECTORS...
  Three new selector types have been added
     [att^=val]: attribute beings with value
     [att$=val]: attribute ends with value
     [att*=val]: attribute contains value
CSS SIDE OF THINGS...

MEDIA QUERIES...
  Define CSS properties based on the type of media,
   such as all, screen, mobile (size), print, etc.


MULTI-COLUMN...
  Define columns and let text flow into them
   automatically

WEB FONTS...
  Link to web-enabled fonts (@font-face) and apply
    them into your site
MILAGE MAY VERY

EVERY BROWSER DOES IT DIFFERENT
  IE, Firefox, Opera, Chrome, Safari all determine when,
    what and most importantly how each feature gets
    implemented


EVERY VERSION DOES IT DIFFERENT
  Not only does each browser-maker do it differently,
   each version of the browser adds (or even changes)
   functionality version to version
SPECIAL CASE CSS3
BROWSER WILL PREFIX CSS FEATURES
  Firefox use the –moz- prefix
     -moz-box-shadow
  Webkit browsers use –webkit- prefix
     -webkit-box-shadow
  The standards do not use a prefix
     box-shadow


PREFIXS HELP BACKWARDS
 COMPATABILITY
  By using a prefix, this allows for opt-in features and
    browser specific implementations to be separated in
    your CSS docs
FORK YOUR CODE

AS DEVELOPERS WE HAVE TO TEST AND
 FORK OUR CODE
 When leveraging new features we have to consider
  what browsers support which feature, then properly
  apply or remove content accordingly
GRACEFULLY FALLBACK
UNDERSTAND YOUR USER
  Who are you creating content for and what browsers do
   they use? This is true for ANY technology!


UNDERSTAND WHAT IS SUPPORTED
  Define what you are doing, determine what you can
    leverage and make sure to handle a graceful fallback


IT DOESN’T HAVE TO BE PRETTY
  Having a fallback doesn’t mean that your low end-
    browsers have to look the same, just make it usable for
    them
LEARN MORE...
HERE ARE SOME AWESOME RESOURCES

 The standards...
 HTML: http://diveintohtml5.org/
 CSS3: http://www.css3.info/

 Drawing stuff...
 http://easeljs.com/
 http://processingjs.org/

 Examples...
 http://beta.theexpressiveweb.com/

Más contenido relacionado

La actualidad más candente

Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3Doris Chen
 
CSS3 Media Queries
CSS3 Media QueriesCSS3 Media Queries
CSS3 Media QueriesRuss Weakley
 
The Fast And The Fabulous
The Fast And The FabulousThe Fast And The Fabulous
The Fast And The FabulousNicole Sullivan
 
CSS - OOCSS, SMACSS and more
CSS - OOCSS, SMACSS and moreCSS - OOCSS, SMACSS and more
CSS - OOCSS, SMACSS and moreRuss Weakley
 
CSS Methodology
CSS MethodologyCSS Methodology
CSS MethodologyZohar Arad
 
New Elements & Features in CSS3
New Elements & Features in CSS3New Elements & Features in CSS3
New Elements & Features in CSS3Jamshid Hashimi
 
Creative Web 02 - HTML & CSS Basics
Creative Web 02 - HTML & CSS BasicsCreative Web 02 - HTML & CSS Basics
Creative Web 02 - HTML & CSS BasicsLukas Oppermann
 
BEM Methodology — @Frontenders Ticino —17/09/2014
BEM Methodology — @Frontenders Ticino —17/09/2014BEM Methodology — @Frontenders Ticino —17/09/2014
BEM Methodology — @Frontenders Ticino —17/09/2014vzaccaria
 
Getting started with html5
Getting started with html5Getting started with html5
Getting started with html5Suresh Kumar
 
Tackling Umbraco: Case Study on NFL Ops Site Design
Tackling Umbraco: Case Study on NFL Ops Site DesignTackling Umbraco: Case Study on NFL Ops Site Design
Tackling Umbraco: Case Study on NFL Ops Site Designmcampolongo
 
CSS3 Media Queries
CSS3 Media QueriesCSS3 Media Queries
CSS3 Media QueriesMan Math
 

La actualidad más candente (20)

Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
CSS3 Media Queries
CSS3 Media QueriesCSS3 Media Queries
CSS3 Media Queries
 
Css3 Presetation
Css3 PresetationCss3 Presetation
Css3 Presetation
 
The Fast And The Fabulous
The Fast And The FabulousThe Fast And The Fabulous
The Fast And The Fabulous
 
CSS - OOCSS, SMACSS and more
CSS - OOCSS, SMACSS and moreCSS - OOCSS, SMACSS and more
CSS - OOCSS, SMACSS and more
 
Css3
Css3Css3
Css3
 
CSS3 Introduction
CSS3 IntroductionCSS3 Introduction
CSS3 Introduction
 
CSS Methodology
CSS MethodologyCSS Methodology
CSS Methodology
 
Introduction to Umbraco
Introduction to UmbracoIntroduction to Umbraco
Introduction to Umbraco
 
SMACSS Workshop
SMACSS WorkshopSMACSS Workshop
SMACSS Workshop
 
New Elements & Features in CSS3
New Elements & Features in CSS3New Elements & Features in CSS3
New Elements & Features in CSS3
 
BEM it!
BEM it!BEM it!
BEM it!
 
Intro to CSS3
Intro to CSS3Intro to CSS3
Intro to CSS3
 
Creative Web 02 - HTML & CSS Basics
Creative Web 02 - HTML & CSS BasicsCreative Web 02 - HTML & CSS Basics
Creative Web 02 - HTML & CSS Basics
 
BEM Methodology — @Frontenders Ticino —17/09/2014
BEM Methodology — @Frontenders Ticino —17/09/2014BEM Methodology — @Frontenders Ticino —17/09/2014
BEM Methodology — @Frontenders Ticino —17/09/2014
 
Getting started with html5
Getting started with html5Getting started with html5
Getting started with html5
 
Tackling Umbraco: Case Study on NFL Ops Site Design
Tackling Umbraco: Case Study on NFL Ops Site DesignTackling Umbraco: Case Study on NFL Ops Site Design
Tackling Umbraco: Case Study on NFL Ops Site Design
 
CSS Reset
CSS ResetCSS Reset
CSS Reset
 
CSS3 Media Queries
CSS3 Media QueriesCSS3 Media Queries
CSS3 Media Queries
 
Taming CSS Selectors
Taming CSS SelectorsTaming CSS Selectors
Taming CSS Selectors
 

Destacado

Destacado (6)

Basics of android
Basics of androidBasics of android
Basics of android
 
Html5 n css3
Html5 n css3Html5 n css3
Html5 n css3
 
Introduction to Android development - CEC ISQIP 2014
Introduction to Android development -  CEC ISQIP 2014Introduction to Android development -  CEC ISQIP 2014
Introduction to Android development - CEC ISQIP 2014
 
Android Basics Tutorial 1
Android Basics Tutorial 1Android Basics Tutorial 1
Android Basics Tutorial 1
 
HTML 5 - en introduksjon
HTML 5 - en introduksjonHTML 5 - en introduksjon
HTML 5 - en introduksjon
 
Android Basics
Android BasicsAndroid Basics
Android Basics
 

Similar a HTML5 for the Flash Developer

Similar a HTML5 for the Flash Developer (20)

CSS3 and a brief introduction to Google Maps API v3
CSS3 and a brief introduction to Google Maps API v3 CSS3 and a brief introduction to Google Maps API v3
CSS3 and a brief introduction to Google Maps API v3
 
Application Development with HTML5 (Microsoft TechDays 2011 - DEV302)
Application Development with HTML5 (Microsoft TechDays 2011 - DEV302)Application Development with HTML5 (Microsoft TechDays 2011 - DEV302)
Application Development with HTML5 (Microsoft TechDays 2011 - DEV302)
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Introduction to whats new in css3
Introduction to whats new in css3Introduction to whats new in css3
Introduction to whats new in css3
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
HTML5- The Boosting Era of Web Development
HTML5- The Boosting Era of Web DevelopmentHTML5- The Boosting Era of Web Development
HTML5- The Boosting Era of Web Development
 
Familiar Tools, New Possibilities: Leveraging the Power of the Adobe Web Pub...
Familiar Tools, New Possibilities:  Leveraging the Power of the Adobe Web Pub...Familiar Tools, New Possibilities:  Leveraging the Power of the Adobe Web Pub...
Familiar Tools, New Possibilities: Leveraging the Power of the Adobe Web Pub...
 
Html5
Html5Html5
Html5
 
html5_css3
html5_css3html5_css3
html5_css3
 
Html5
Html5Html5
Html5
 
HTML 5 Step By Step - Ebook
HTML 5 Step By Step - EbookHTML 5 Step By Step - Ebook
HTML 5 Step By Step - Ebook
 
WEB DEVELOPMENT
WEB DEVELOPMENTWEB DEVELOPMENT
WEB DEVELOPMENT
 
Flash Web Development.pdf
Flash Web Development.pdfFlash Web Development.pdf
Flash Web Development.pdf
 
Css3
Css3Css3
Css3
 
Echo HTML5
Echo HTML5Echo HTML5
Echo HTML5
 
Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1
 
HTML5 introduction for beginners
HTML5 introduction for beginnersHTML5 introduction for beginners
HTML5 introduction for beginners
 
Mix 2010 twilight
Mix 2010 twilightMix 2010 twilight
Mix 2010 twilight
 

Último

The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 

Último (20)

The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 

HTML5 for the Flash Developer

  • 1.
  • 2. WHAT IS HTML 5? “HTML 5” IS A MISCONSEPTION... (sorta) For most people, HTML5 is really a branding buzz-word gone wild HTML 5 IS A COLLECTION OF FEATURES... What people are calling HTML5 is really a collection of W3C specifications and CSS3 standards that enable a more expressive experience WE CAN DROP THE 5... The 5 can be confusing, let’s just consider it HTML, because that is what it really is
  • 3. WHAT MAKES UP “NEW” HTML W3C SPECS AND PROPOSALS... The W3C standards board are drafting new specifications for HTML tags and features. These new features are what makes up part of “HTML5” CSS3 SPECS AND PROPOSALS... CSS3 has (and is) adding new features and functionality to browser-based applications
  • 4. WHY ALL THE HYPE? EMPOWERING A LARGE SET OF DEVELOPERS... The new features of HTML are providing more control, expressiveness and capabilities that browser-based developers have asked (and) needed for a long time LOOK MA, NO PLUGINS!!! Flash is great, but it’s causing a lot of turmoil in the development community (right or wrong). The new HTML features has the ability to provide Flash-like (and more) features for any device that supports a modern browser MOBILE, MOBILE EVERYWHERE... Mobile devices are driving the market, and they (mostly) have modern browsers, enabling a lot of this cool new stuff
  • 5. WHY SHOULD I CARE? I <3 FLASH BUT... Flash is great, it gives us a lot of power but there are limitations Let’s be honest... Flash mobile is cool but really not there yet and in some cases *cough* iOS *cough* it’s not even supported Mobile browser are often the most advanced browsers in the market As Seb Lee-Delisle said: “... we are really software programmers.”
  • 6. LET’S BREAK IT DOWN = HTML + CSS3 + JS
  • 7. HTML SIDE OF THINGS... NEW DOCTYPE... <!DOCTYPE html>! LOOSER STRUCTRE... XHTML required valid XML data, not so with HTML5 Types are dropped for <script> and <style> tags Quotes are optional EDITABILITY... Throw a new attribute (contentEditable) on text items and users can now change the values in real-time
  • 8. HTML SIDE OF THINGS... BETTER FORMS... Placeholder Text Autofocus on fields Email field Type (helpful for mobile) Web address field type (similar to email) Number Field (min, max, step & sliders) Date Pickers, Search Fields, Color Pickers Form Validation Required Fields Regex Support
  • 9. HTML SIDE OF THINGS... VIDEO & AUDIO... We now have <video> and <audio> tags Codec’s are important: Video: H.264, Theora, VP8 Audio: MPEG-1 Audio Layer 3, AAC, OGG Real full-screen video is now available (in Safari 5.1 on Lion)
  • 10. HTML SIDE OF THINGS... CANVAS... Bitmap drawing area (low level) Software rendered (except in Safari 5.1) Performance can be lacking No display list, you are just drawing to a bitmap Growing set of libraries EaselJS (http://easeljs.com/) ProcessingJS (http://processingjs.org/) Many, many more coming...
  • 11. CSS SIDE OF THINGS... CSS IS NOT HTML... Cascading Style Sheets (CSS) are not considered HTML. HTML is the markup, CSS is a separate syntax and system that modifies (styles) HTML CSS3 IS ADDING A LOT OF COOL STUFF The new HTML features are more about structure and content, CSS3 is more about expression
  • 12. CSS SIDE OF THINGS... BORDERS... border-color: finer controls over color and color sets border-image: use images to create borders border-radius: adds the ability to round corners box-shadow: create drop shadows and glows BACKGROUNDS... background-origin: defines the background position structure background-clip: defines how & where the background extends background-size: defines the size of the background image multiple-backgrounds: allows multiple images to be defined and placed
  • 13. CSS SIDE OF THINGS... COLOR... Support for new color definitions using HSL (Hue, Saturation & Light), HSLA (HSLA + Alpha), Opacity Controls and RGBA TEXT EFFECTS... text-shadow: define shadows and glows on text text-overflow: defines how text should be clipped (...) word-wrap: defines when words should be broken and wrapped in a constrained box
  • 14. CSS SIDE OF THINGS... USER INTERFACE... box-sizing: define how box size is calculated resize: allow boxes to be resized by the user outline: think nested borders NEW SELECTORS... Three new selector types have been added [att^=val]: attribute beings with value [att$=val]: attribute ends with value [att*=val]: attribute contains value
  • 15. CSS SIDE OF THINGS... MEDIA QUERIES... Define CSS properties based on the type of media, such as all, screen, mobile (size), print, etc. MULTI-COLUMN... Define columns and let text flow into them automatically WEB FONTS... Link to web-enabled fonts (@font-face) and apply them into your site
  • 16. MILAGE MAY VERY EVERY BROWSER DOES IT DIFFERENT IE, Firefox, Opera, Chrome, Safari all determine when, what and most importantly how each feature gets implemented EVERY VERSION DOES IT DIFFERENT Not only does each browser-maker do it differently, each version of the browser adds (or even changes) functionality version to version
  • 17. SPECIAL CASE CSS3 BROWSER WILL PREFIX CSS FEATURES Firefox use the –moz- prefix -moz-box-shadow Webkit browsers use –webkit- prefix -webkit-box-shadow The standards do not use a prefix box-shadow PREFIXS HELP BACKWARDS COMPATABILITY By using a prefix, this allows for opt-in features and browser specific implementations to be separated in your CSS docs
  • 18. FORK YOUR CODE AS DEVELOPERS WE HAVE TO TEST AND FORK OUR CODE When leveraging new features we have to consider what browsers support which feature, then properly apply or remove content accordingly
  • 19. GRACEFULLY FALLBACK UNDERSTAND YOUR USER Who are you creating content for and what browsers do they use? This is true for ANY technology! UNDERSTAND WHAT IS SUPPORTED Define what you are doing, determine what you can leverage and make sure to handle a graceful fallback IT DOESN’T HAVE TO BE PRETTY Having a fallback doesn’t mean that your low end- browsers have to look the same, just make it usable for them
  • 20. LEARN MORE... HERE ARE SOME AWESOME RESOURCES The standards... HTML: http://diveintohtml5.org/ CSS3: http://www.css3.info/ Drawing stuff... http://easeljs.com/ http://processingjs.org/ Examples... http://beta.theexpressiveweb.com/