Changing the content of an element

Objective

  • Change the content of an element

Example of changing the content of an element

The current time is:
Clicking on the button below modifies the date and time shown above (if JavaScript is enabled).
Code: