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


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.

Updated on: 25-Jun-2020

139 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements