Creating a digital clock using only div HTML CSS JS

An example of a digital clock is given on the below left. The clock always has 6 digits. Each digit consists of at most 7 div’s (the 8 digit) or at leat 2 div’s (the 1 digit). enter image description here

As you can see the clock on the left show 8:12:36 am. Each “piece” of a digit is a div (html tag). After you create this clock which is an outer div (that contains the clock), you will again append it to your page wherever you like to be. Also the dots between the hour-minute and minute-second are also div’s. The clock should change every second (setTimout or maybe getting the Date).