how do we import time in html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how do we import time in html

import time in html

5th May 2019, 10:04 PM
Inno Criss
Inno Criss - avatar
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.
6th May 2019, 3:57 AM
Adam
Adam - avatar
+ 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
6th May 2019, 4:54 AM
David Carroll
David Carroll - avatar