In general, the content for whatever you copied goes into memory that the OS sets aside. So then when you paste, the contents of that memory are copied to where you are focused on. Modern systems have some extra sophistication such as recognizing if the copied content is plain text, formatted text, or binary. So if the receiving application only supports plain text and you paste in formatted text, the application knows to strip away the formatting.
Latest Answers