Borrowed from French tarte. Cognate with English tart.
Practice speaking and memorizing "tarta" and many other words and sentences in Spanish.