Sure, but lets say you have well-formed HTML tags. At that point you're looking for things semantically "weird" as opposed to structurally wrong. This helps there.
Re:Linting HTML using CSS
by stan_rogers on Saturday March 11, 2017 @10:16PM
(#13848731)
HTML isn't XML. HTML is older.
this kind of linting can't spot broken document structure