locked
on html5 RRS feed

  • Question

  • is it correct to assume that html5 is browser or os specific? This is my first time asking a question through msdn. Thank you.
    Thursday, June 7, 2012 3:14 PM

Answers

  • The HTML5 "spec" is yet to become a "standard". It is still a work in progress. However, the newer versions of major browsers support many of the new HTML5 elements and APIs.

    Not all browsers may choose to support a feature in a specific version or it may be implemented differently. So the answer to your question if HTML5 is browser specific is - it depends on the HTML5 feature you're trying to use. To verify if a HTML5 feature is available in the browsers you're targeting, go to the site caniuse.com and select the Tables tab & use the Browser comparison link.

    One way to overcome this compatibility issue is to use the JavaScript library Modernizr

    Modernizr is a small JavaScript library that detects the availability of native implementations for next-generation web technologies, i.e. features that stem from the HTML5 and CSS3 specifications. Many of these features are already implemented in at least one major browser (most of them in two or more), and what Modernizr does is, very simply, tell you whether the current browser has this feature natively implemented or not.


    M.V.'Anil' Radhakrishna
    Web Development Tips, Tricks & Trivia

    • Proposed as answer by 网游 - wang'you Monday, June 11, 2012 10:22 PM
    • Marked as answer by ardesh Tuesday, June 12, 2012 4:41 AM
    Monday, June 11, 2012 8:05 AM

All replies

  • No, the point of a standard is that everyone can read the spec and implement it.


    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP

    Thursday, June 7, 2012 6:13 PM
  • The HTML5 "spec" is yet to become a "standard". It is still a work in progress. However, the newer versions of major browsers support many of the new HTML5 elements and APIs.

    Not all browsers may choose to support a feature in a specific version or it may be implemented differently. So the answer to your question if HTML5 is browser specific is - it depends on the HTML5 feature you're trying to use. To verify if a HTML5 feature is available in the browsers you're targeting, go to the site caniuse.com and select the Tables tab & use the Browser comparison link.

    One way to overcome this compatibility issue is to use the JavaScript library Modernizr

    Modernizr is a small JavaScript library that detects the availability of native implementations for next-generation web technologies, i.e. features that stem from the HTML5 and CSS3 specifications. Many of these features are already implemented in at least one major browser (most of them in two or more), and what Modernizr does is, very simply, tell you whether the current browser has this feature natively implemented or not.


    M.V.'Anil' Radhakrishna
    Web Development Tips, Tricks & Trivia

    • Proposed as answer by 网游 - wang'you Monday, June 11, 2012 10:22 PM
    • Marked as answer by ardesh Tuesday, June 12, 2012 4:41 AM
    Monday, June 11, 2012 8:05 AM