Shown below is the above html code in action