Liver cancer can be classified into two main types: primary and secondary.