HTML syntax checking with PHP. I want to get an error for no end tag or wrong tag nesting.

HTML syntax checking with PHP. I want to get an error for no end tag or wrong tag nesting.
CONTENTS
Web Browser