This repository contains a simple HTML and JavaScript code to create both analog and digital clocks that display the current time. The analog clock displays the time using rotating clock hands, while the digital clock displays the time in a digital format.
- Analog clock with rotating clock hands.
- Digital clock that displays the current time in HH:MM:SS format along with AM/PM indication.
- Clock hands are updated in real-time to show the accurate time.
- Easy-to-understand code structure.
- Clone the repository using the following command:
-
Open the
index.html
file in a web browser. -
The analog clock will display the time using rotating clock hands, and the digital clock will show the time in HH:MM:SS format.
- You can modify the colors of the clock hands and the clock background by adjusting the
--clr
CSS variable in the HTML file. - Feel free to customize the HTML structure and CSS styling to match your preferences.
[Surya Pratap Singh]
This project is licensed under the MIT License - see the LICENSE file for details.