HTML error recovery

The HTML parser's standard rules for repairing broken markup, such as unclosed tags, instead of refusing to show the page.

In more detail

Unlike XML or JSON, which stop at the first syntax error, HTML parsing never fails. The standard spells out exactly how every mistake is fixed, so all browsers build the same DOM from the same broken page.

Related terms

Taught in

References