validator
validator copied to clipboard
HTML Validator Fails to Detect Missing Closing Tag for <p>
URL being validated or code to reproduce error:
Description:
I have identified an issue in the W3C HTML Validator where it fails to detect a missing closing tag for the <p> element in the following HTML document. The validator incorrectly marks the code as valid, even though the first <p> tag is not properly closed before the subsequent <div> element.
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Validator</title>
</head>
<body>
<div>
<p>
<div></div>
<p></p>
</div>
</body>
</html>