How does UI design differ from UX design?

UX involves analyzing the user interaction with a website or mobile app. The aim is to turn visitors into customers by providing a splendid visual journey. 

On the other hand, UI is all about the actual presentation of the product. It includes visual elements like icons, colors, buttons, fonts, images, etc.