Why is my HTML hard to read?+
HTML from content management systems, template engines, or compressed web pages is often minified - all whitespace removed. The formatter restores proper indentation and line breaks.
Does formatting change the rendered output?+
Whitespace between block elements is insignificant in HTML rendering, so formatting doesn't change how the page looks in a browser. Whitespace inside inline elements (like <span>) can matter - the formatter preserves this.
What indentation style should I use?+
2 spaces is standard in most HTML style guides (Google, Airbnb). 4 spaces is also common. Tabs can cause rendering inconsistencies across editors - spaces are preferred for shared codebases.
Can the formatter fix invalid HTML?+
The formatter attempts to fix unclosed tags and improper nesting, but heavily malformed HTML may produce unexpected results. Use a validator like validator.w3.org for proper error checking.