When we assign ID for HTML entity for <p> tag or <div> tag, we can dynamically update its content.
The way of coding is super simple.
1) Assign ID for HTML entity
2) Put necessary action using getElementByID( entity_name ).innerHTML = blah blah...
Below example shows how to update internal content dynamically.
...