# HTML如何跟JAVASCRIPT搭配使用 --- tags: HTML CSS relate --- ###### tags: `HTML, CSS` **The HTML <script> Tag** The HTML <script> tag is used to **define a client-side script (JavaScript)**. The <script> element either contains script statements, **or it points to an external script file through the src attribute.** Common uses for JavaScript are image manipulation, form validation, and dynamic changes of content. 像這個圖片就可以跳出"hI"這個框框 第一種方法是直接寫入JAVASCRIPT進去SCRIPT裡面 ![](https://i.imgur.com/aXe2p07.png) 第二種方法是用引入的方法 ![](https://i.imgur.com/jsGbA2k.png) 下方這張圖是被引入的js檔案 ![](https://i.imgur.com/T4sP1BC.png)