0
how do we import time in html
import time in html
2 Answers
+ 2
HTML isn't a programming language. It is just markup language that tells your code how to display. You don't do imports in HTML.
+ 12
You would need to use Javascript to manipulate the HTML DOM to show the current time.
The following tutorials should be helpful:
https://www.quackit.com/javascript/tutorial/javascript_date_and_time.cfm
https://timestamp.online/article/how-to-get-current-date-and-time-in-javascript
https://www.w3schools.com/js/js_dates.asp