t>

Use the script tag to write JavaScript. Specify "text/javascript" for type. It seems that the JavaScript code needs to be written in a section called CDATA so that it works properly even with the specification of XHTML. On the contrary, from the viewpoint of JavaScript, the CDATA section is not needed, so it is commented out with //.

Loading external JavaScript

<script src="/js/myapi.js" type = "text/javascript"></script>

Use the script tag to load external JavaScript. Specify the URL of the JavaScript source in src, and specify "text/javascript" in type.

At the end

It was a rush, but I will finish the explanation of HTML.


Related Informatrion