Step 1: Create a new HTML file
The first step is to create a new HTML file in your text editor. You can name it anything you like, but make sure that it has an .html extension. Open the file in your web browser to make sure that it is working correctly.
Step 2: Add the script tag
<head> <script> alert('Hello World!'); </script> </head>
Step 4: Save and reload your file