1. A method of displaying a user interface (UI), wherein the displaying is performed by a client, the method comprising: receiving UI data encoded in a multimedia data format from a server; decoding the received UI data including a plurality of UI elements which include information needed to select one of the plurality of UI elements, each of the plurality of UI elements includes presentation information for representing objects included in the UI, and information about mapping, different in at least two UI elements of the plurality of UI elements, between device application programming interfaces and events generated by the objects; generating the UI based on a UI element selected based on characteristics of a user preference and the information needed to select one of the plurality of UI elements; and displaying the generated UI in which objects corresponding to the selected UI element are represented.