A typewriter is a mechanical or electronic device used for writing text by striking a ribbon with characters attached to it, making an impression on paper. The machine typically has keys that correspond to each character and when pressed, strike the ribbon to create the desired letter or symbol.