W3C HTML Validation Web Standard

HTML code can be automatically validated against a formal description of the HTML language. The formal description lists elements and attributes, along with rules on how they can be combined.

Rules