How to add a <script> script in html: 1. You can directly add javascript code to html Copy the code