points
But for html snippets you can pretty much just check that tags follow a couple simple rules between <> and that they're closed or not closed correctly.