That is a jquery plugin, which emulates HTML5 Form behavior on the legacy browsers.
The plugin also allows to customize form submission validation tooltips and field validation callbacks (e.g. via XMLHttpRequest)
Currently the plugins serves following input types: text, email, url, number, tel and following input properties: novalidate, placeholder, required, autofocus, pattern, min, max
To enable the shim you simply have to include jQuery and this plugin.
See details on how top use HTML5 form at html5rocks.com
Styling
Take in the account that legacy browsers ignore CSS pseudo-classes :focus, :invalid, :valid, so use instead classes focus, invalid, valid.
NOTE: The examples below use CSS3 styles. If you want your forms not only behave, but look the same in all browsers, use simple styles