Enable HTML5 Markup on Older Browsers

HTML5 is definitely the future of client-side web development. Unfortunately, some old browsers do not even recognize new tags such as header or section. This code will force old browsers to recognize the new tags introduced by HTML5.

A better solution is to link the .js file to the <head> part of your HTML page:

Source: http://remysharp.com/2009/01/07/html5-enabling-script/

Leave a Reply