How to use it
Beautify HTML with Prettier, including inline script and style blocks. Respects inline vs block elements so rendered whitespace stays the same. Paste or edit HTML above; the formatted result updates as you type.
Example
Input: <main><h1>Hello</h1></main>
Output:
<main>
<h1>Hello</h1>
</main>Limits and behavior
- Invalid markup is reported with a parser message.
- Input is limited to 1 MiB of UTF-8 text.