Loading, please wait...


First JavaScript

In HTML, JavaScript Code must be placed within the <script> and </script> tags. Here, script tag mainly define the written block of JavaScript code.

JavaScript Code can be placed in within <body> or <head> sections.


The Syntax for a JavaScript block of code:

<script type = “text/javascript”>

Block of code




<script >
document.write("Hello TutorialsLink!")


Here, document.write is a function which is used to display data to the webpage with the help of javascript.