HTML Header/Footer
All JavaScript functions or code must contain a header and footer to indicate where the code begins and ends. The code must be written between valid HTML header and footer tags.
The HTML header is as follows:Â
<html><head><title>Example</title>
The HTML header must be included at the start of all JavaScript code, but you can modify the text between the <title></title> tags as required. In the previous example header, the name of the JavaScript code is Example
Â
The HTML footer is as follows:
</head><body></body></html>