4 Errors but syntax is correct

Hello validator support,

in my example are 4 errors that elements are not opened or closed correctly, but the syntax is perfectly ok. 
This only happens if the headline is inserted inside the anchor. But this should be allowed in HTML5
<!DOCTYPE html>
<html lang="de">
    <head>
        <title>TEST</title>
    </head>
    <body>
        <p><a href="#" target="_blank"><h5>TEST</h5></a><p>
    </body>
</html>

Best regards
Dandy Rose

Received on Tuesday, 4 August 2020 08:54:06 UTC