Javascript is implemented using the <script> tag; the <script> and </script> tags tell JavaScript where to start and end; the browser will interpret and execute the <script> and < JavaScript code between ;/script>. </p></blockquote> <p><img src="https://img.php.cn/upload/article/202106/30/2021063009183485842.jpg" alt="What tags do javascript use?" ></p> <p>The operating environment of this article: windows7 system, javascript version 1.8.5, Dell G3 computer. </p> <p><strong>What tags are used to implement JavaScript? </strong></p> <p>If you need to insert JavaScript into an HTML page, you need to use the <script> tag. </p> <p><strong>JavaScript Usage</strong></p> <p>Scripts in HTML must be placed between the <script> and </script> tags.
Scripts can be placed in the
and sections of the HTML page.<script> Tag</strong></p> <p>To insert JavaScript into an HTML page, use the <script> tag. </p> <p><script> and </script> tell JavaScript where to start and end.
The lines between <script> and </script> contain JavaScript:
<script> alert("我的第一个 JavaScript"); </script>Copy after loginYou don’t need to understand the code above. Just understand that the browser will interpret and execute the JavaScript code between <script> and </script>
lamp Older instances may use type= in the
Latest Articles by Author
2023-04-24 11:00:01 2023-04-24 10:55:51 2023-04-24 10:52:44 2023-04-23 17:40:51 2023-04-23 17:38:02 2023-04-23 17:34:02 2023-04-23 10:15:45 2023-04-23 10:10:52 2023-04-21 16:01:59 2023-04-21 15:58:01Latest IssuesJavaScript Tutorial: Using JavaScript to create and read values in cookiesFrom 1970-01-01 08:00:00000