Make HTML document valid.