The element that lies in the middle and at the top of the window and shows the program and document titles is called the Title Bar. The title bar is a horizontal bar at the top of a computer window that displays the name of the program and often the name of the document being used. It also typically includes control buttons for minimizing, maximizing, and closing the window, helping users identify and manage active windows effectively.