![Why split the <script> tag when writing it within document.write() method in JavaScript ? - GeeksforGeeks Why split the <script> tag when writing it within document.write() method in JavaScript ? - GeeksforGeeks](https://media.geeksforgeeks.org/wp-content/uploads/20200123163308/3001.png)
Why split the <script> tag when writing it within document.write() method in JavaScript ? - GeeksforGeeks
![html> <body> <h1>My First Web Page</h1> <script type="text/javascript"> document.write("<p>" + Date() + "</p>"); </script> </body> </html> To insert. - ppt download html> <body> <h1>My First Web Page</h1> <script type="text/javascript"> document.write("<p>" + Date() + "</p>"); </script> </body> </html> To insert. - ppt download](https://slideplayer.com/13680997/84/images/slide_1.jpg)
html> <body> <h1>My First Web Page</h1> <script type="text/javascript"> document.write("<p>" + Date() + "</p>"); </script> </body> </html> To insert. - ppt download
![script> tag is not working i am trying to run javascript script in script tag in html file - Stack Overflow script> tag is not working i am trying to run javascript script in script tag in html file - Stack Overflow](https://i.stack.imgur.com/qhq9q.png)