Implemented basic HTML validation with tidy and added some test cases.