Fixes to HTML5

Fixes any remaining incompatibilities with HTML5 and CSS3 and has been
checked against W3C.