Date and time in real time
Display date and time on your html page

1. In the head de votre page, insert the following code:

Then copy and paste it in your page

You can change font and attributes in line:
code=code+ '<font face="tahoma, Arial, Helvetica, sans-serif" style="font-size: 18px; font-weight: bold;">'

2. In the body of your page, insert the following code where you want to display date and time:
<div id="horloge"></div>

On this website
This script is used in Animated doll with dynamic date/time and message generator