• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. JavaScript > JavaScript in HTML

11.9. JavaScript in HTML

Client-side JavaScript code may be embedded in HTML files in several ways:


<SCRIPT> tag

Most JavaScript code appears in HTML files between a <SCRIPT> tag and a </SCRIPT> tag. The <SCRIPT> tag can also be used to include an external file of JavaScript code into an HTML document. The <SCRIPT> tag supports a number of attributes, including these three important ones:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint