Fixed all HTML5 validation failures and avoidable warnings.
Merge pull request #148 from EricDunsworth/v4.0-html5-validation

Fixed all HTML5 validation failures and avoidable warnings.