3 ms·
HTML linters actually help distinguish things like that? I'm curious if there are any linters out there that can enforce this kind of semantic tag selection.
by jdw64 6mo ago
HTML linters actually help distinguish things like that? I'm curious if there are any linters out there that can enforce this kind of semantic tag selection.
- wonger_ 6mo agoClosest thing I know of is https://github.com/kristoff-it/superhtml#diagnostics https://github.com/kristoff-it/superhtml#diagnostics SuperHTML validates not only syntax but also element nesting and attribute values. No other language server implements the full HTML spec in its validation code.
- jdw64 6mo agothanks!
- tosti 6mo agoEnforce semantic tags? HTML is first and foremost meant for authors to get creative. Enforcing one tag over another doesn't make sense to me. Accessibility yes, but there are plenty of constraints already.