IHC markers work by binding to specific antigens present in the tissue sample. The antigen-antibody binding is then visualized using various detection methods, such as enzyme-linked or fluorescent secondary antibodies. This makes it possible to see the distribution and localization of the target protein within the tissue.