Fix errors in the markup to make it valid HTML5