Virtual labs function by using high-resolution images of tissue samples that can be zoomed in and out, manipulated, and annotated. These images are often accompanied by detailed explanations and quizzes that help reinforce learning. Users can navigate through different tissue types, identify cellular structures, and test their knowledge.