Html5 validation fix

Some fixes based on errors from the [W3C Validator](http://validator.w3.org/).