Fluorescent markers work by attaching to specific targets within a cell. When exposed to light, they fluoresce, making the target visible under a fluorescence microscope. This allows researchers to study the localization and interaction of proteins, observe cellular processes, and identify the presence of cancerous cells.