Is HTML validation still a useful service, or is it obsolete by now?
W3C Validator alternatives for broken HTML?
java - How to validate that HTML matches W3C standards - Stack Overflow
W3C HTML validation for React JSX files
Videos
» npm install w3c-html-validator
It's been 20 years since I learned the bulk of my web dev skills, and I'm very much stuck in my old ways. Every so often I realize I've been wasting time doing something the hard way when there's no need for it anymore, it's just what is familiar.
The main point of validating HTML/CSS back in the day was to ensure your site worked/looked the same regardless of which browser it was accessed with. Web standards have developed enough by now that it's no longer an issue, rather the focus now is on various devices/screen sizes.
(If anyone has no clue what I'm talking about: https://validator.w3.org/)
Does validation serve much purpose beyond double-checking your syntax? Is there a better way to do that when writing a page by hand?
I've always used the W3C Validator to help find broken HTML elements, but I'm finding it's becoming quite outdated and throwing errors for things that are now valid.
Are there any better alternatives to finding broken HTML elements?
You can use the W3C validator directly from Java, see w3c-jabi.
There is also an experimental API available from W3C to help automate validation. They kindly ask that you throttle requests, and also offer instructions on setting up a validator on a local server. It's definitely more work, but if you're generating a lot of HTML pages, it would probably make sense to also automate the validation.
http://validator.w3.org/docs/api.html