- What does minification remove?
- Whitespace between tags, comments (configurable), optional quotes on simple attribute values, and optional closing tags on void elements. Character content inside tags is never changed.
- Will minification break inline JavaScript?
- No — script content is preserved verbatim. Use a dedicated JS minifier to compress the script itself.
- How much size reduction is typical?
- 10–25% depending on how hand-formatted the source is. Templated HTML with lots of indentation shrinks more than already-dense output.
- Is minified HTML still valid?
- Yes — it parses identically to the pre-minified version. HTML5 tolerates the optional quote and tag omissions; HTML4/XHTML should disable those options.