I want to detect errors in my HTML during development.
Example:
<tr><td>foo</td><a href="...">...</a></tr>
This should be detected.
Required Features:
- open source
- self-hosting: the library should not need a service like https://validator.w3.org/
- Unknown attributes should get detected (example "hrf" instead of "href").
- extensible: There should be a way to configure it, so that non-standard attributes (example like https://htmx.org/) are ignored.
- Command line interface or library which is usable via python.
- Should work for html5
Background: I did a refactoring in my code and no automated test complained. But there were bugs (see above example). I would like to automate html checking to be sure this does not happen again.
BTW: It is enough to detect the error. No automatic fixing should be attempted.
<br>
is valid, I don't want to write<br />
:-). And thank you for the link-checker, but in my case I just want to check html5 syntax.<br>
is fine. You don't need to write<br />
any more. I am so happy that html is no longer xml.