HTML Tidy is a tool for checking and cleaning up HTML source files. It is especially useful for finding and correcting errors in deeply nested HTML, or for making grotesque code legible once more.
Project URL, source code and executable downloads: http://tidy.sourceforge.net/
I installed it on CentOS 4.6 by following the below steps, it should work fine on any Linux distro
Step 1: Go to http://tidy.cvs.sourceforge.net/viewvc/tidy/tidy/ and click on “Download GNU tarball” at the bottom. This will download a file named `tidy.tar.gz`.
Step 2: Untar the file by below command
Step 3: Change directory to the generated folder
Step 4: Run the below commands
Step 5: Tidy has been installed successfully, you can check the version by
Output: HTML Tidy for Linux/x86 released on 25 March 2009
CentOS and Ubuntu both are Linux distros. Below are some major differences between them.
1. CentOS is based on RHEL (Red Hat Enterprise Linux), while Ubuntu has its roots in Debian.
2. On an Ubuntu system the root password is randomly generated which is not known to the administrator. You will have to use ‘sudo command’ to get root-privileges.
3. Repositories of Ubuntu contain fresher packages than CentOS, it tends to be less conservative than CentOS, whereas CentOS packages focuses only on security patches.
4. CentOS uses YUM package manager with RPM packages whereas Ubuntu uses apt with DEB packages.
5. Ubuntu cleanly upgrades between major versions, CentOS is not so good to do that (needs a reinstall often). [via: Liz Quilty]
Know some more differences? Please put them in the comment box, I will add them in the post.
Recommended reading: “CentOS vs Ubuntu“