Home>Article>Web Front-end> What method can be used to add js to the html page?

What method can be used to add js to the html page?

王林
王林 forward
2020-09-15 17:42:41 3578browse

What method can be used to add js to the html page?

Method 1: Introduce JS files in the head tag

(Recommended tutorial:html tutorial)

   

Method 2 :Write JS code in the body tag

  

The above is the detailed content of What method can be used to add js to the html page?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete