tab2space

HTML syntax checker and reformatter

Install

All systems
curl cmd.cat/tab2space.sh
Debian Debian
apt-get install tidy
Ubuntu
apt-get install tidy
Arch Arch Linux
pacman -S tidy
image/svg+xml Kali Linux
apt-get install tidy
CentOS
yum install tidy
Fedora
dnf install tidy
Windows (WSL2)
sudo apt-get update sudo apt-get install tidy
Raspbian
apt-get install tidy

tidy

HTML syntax checker and reformatter

Corrects markup in a way compliant with the latest standards, and optimal for the popular browsers. It has a comprehensive knowledge of the attributes defined in the HTML 4.0 recommendation from W3C, and understands the US ASCII, ISO Latin-1, UTF-8 and the ISO 2022 family of 7-bit encodings. In the output: * HTML entity names for characters are used when appropriate. * Missing attribute quotes are added, and mismatched quotes found. * Tags lacking a terminating '>' are spotted. * Proprietary elements are recognized and reported as such. * The page is reformatted, from a choice of indentation styles. Tidy is a product of the World Wide Web Consortium.