- What does 'valid' HTML mean?
- Conformance to the HTML5 spec: proper nesting, required attributes, no duplicate IDs, matching open/close tags. The validator reports the exact line and column of each issue.
- Does it check accessibility?
- Only the bits that overlap with validity — missing alt text, missing label associations, invalid aria values. Use a dedicated accessibility tool (axe, WAVE) for a full audit.
- Will it flag custom elements?
- Custom elements (hyphenated tags like `<my-widget>`) are allowed by spec — the validator recognizes them. Unknown standard-looking tags (`<mydiv>`) are flagged.
- Can I validate HTML fragments?
- Yes — the validator auto-wraps fragments in a minimal document. Paste a snippet from a template or a CMS without building a full page first.