How to use it
- Keep the language set to HTML, or choose Angular template.
- Paste your markup.
- Copy the formatted result.
Whitespace matters in HTML
A space between inline elements can show on screen. The formatter follows CSS display rules, so it sometimes breaks a tag in an unusual place to avoid adding visible space.
Your markup is treated as text. Scripts in it are not run.
Questions
Can it format Angular control flow such as @for?
Yes, choose Angular template.
Does it validate HTML?
No. It reports only errors that stop it from reading the markup.