What is the best HTML formatter that folks use in 2026?
Don't say prettier. It turns void elements into self-closing tags, which do not exist in HTML, so it produces invalid HTML.
See https://developer.mozilla.org/en-US/docs/Glossary/Void_element#self-closing_tags
I'm looking for an HTML formatter that produces valid HTML.