Skip to main content

HTML Guide

Free site validation

Find out what web pages on your sites are affected by HTML issues.

End tag “em” violates nesting rules.

An end tag </em> has been found in an incorrect place within the document, violating nesting rules. A common case is closing it before closing other nested tags, for example:

<!-- This line is incorrect as the <em> tag was closed before the nested <a> tag -->
<em><a href="#">link</em></a>

<!-- This line is OK as every end tag respects the nesting rules -->
<em><a href="#">link</a></em>

Learn more:

Related W3C validator issues