Dynamic Content
- Many times it is necessary to dynamically generate text
depending on the user's input.
- HTML tags inside the document.write() method can be used to create
dynamic text (e.g, diplaying a greeting depending on the
time of the day).
Example