The document provides an HTML example that demonstrates the use of JavaScript to display the current date and time. It includes a button that, when clicked, updates a paragraph element with the current date and time using the Date() object. The code is structured with basic HTML elements including a heading, button, and paragraph.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
0 views
css prac 8
The document provides an HTML example that demonstrates the use of JavaScript to display the current date and time. It includes a button that, when clicked, updates a paragraph element with the current date and time using the Date() object. The code is structured with basic HTML elements including a heading, button, and paragraph.