Several validators, such as the one by the W3C, can validate an HTML (or XHTML) page against the W3C spec. Are there any validators that are extensible? That is, I'd like to not only validate against the spec, but I'd like to also validate against additional elements and/or attributes. I'd like to be able to specify these additions without programming if possible; adding them to a database or XML file or a config file would be fine.
Thanks for any suggestions.
The basic idea behind HTML5 validation is, that you tell the browser which fields you want validated but don't actually do the tedious implementation yourself. As you define what state your input field is in you also asks the browser to validate the field client-side based on the type of input field.
An HTML validator is a specialized program or application used to check the validity of HTML markup in a Web page for any syntax and lexical errors.
In order to validate your code, you have to declare the standard to which it adheres. To describe the HTML standard (the document type declaration, DTD), the file should contain a DOCTYPE declaration (before the HTML code). Here are a few examples (from http://www.htmlhelp.com/tools/validator/doctype.html).
There isn't anything like it that I know
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With