What HTML minification does
HTML minification collapses whitespace between tags, removes comments and optional quotes, and shortens boolean attributes like disabled="disabled" to disabled. It can also minify the CSS and JavaScript inside style and script tags.
It's most useful for static sites, email templates and pages that are served without a build step.