JavaScript Example (Program)
Learn Details

Add HTML Tag in Javascrip

1. doucment.write()

How to Write

<script type="text/javascript">
document.write(//your html tag)
</script>

Example :

<script type="text/javascript">
document.write("<strong>Hello,</strong> <p>This is My second Javascript</p>"); </script>