Is there any way of moving to HTML 5 and still promise multi browser compatibility?

JavascriptWeb DevelopmentFront End Scripts

Yes, follow this approach −

  • Move to the HTML5 doctype − <!DOCTYPE html>
  • Use <div> or even the new elements like <section>
  • Or the newer HTML5 tags <video> or <audio>, you can still use the outdated <object> tag.
  • The controls have backward compatibility too. The <input type="email"> works the same as <input type="text"> in browsers that do not support it.

However, if you are working t for legacy Internet Explorer, then use html5shiv. It enables the use of HTML5 sectioning elements in legacy Internet Explorer.

raja
Updated on 25-Jun-2020 06:20:19

Advertisements