CP3024 Lecture 5 State Maintenance, Cascading Style Sheets and Dynamic HTML Typical Web-based Purchase Number of steps View X Add X to shopping cart View Y Add Y to shopping…