31
views
views
This wikiHow teaches you how to include JavaScript in your website's code using HTML.
Open a simple text editor. Notepad on Windows and TextEdit on Mac are the native text editors that ship with the operating systems. On Windows, type Notepad in the Start menu's search field to locate Notepad on your computer, then click Notepad when it appears in the results. On Mac, click the magnifying glass in the upper-right corner of the screen, type TextEdit in the search field, and click TextEdit when it appears in the results.
Start an HTML block. Include the HTML tags, including the
and combination pair, as well as the and combination pair. Include all the tags needed to start the page, as shown:Add a script tag to the HTML head. To do so, insert a