What exactly is HTML validation?
It’s the process of checking the syntax of your HTML code to find places where you’ve violated the rules of the language. The official rules for writing HTML are defined by the World Wide Web Consortium (W3C). Those rules include strict definitions stating which HTML tags are legitimate parts of the language, and how you should structure your HTML documents.