HTML Tag validator that does not rely on the DOM