![]() |
In HTML5, we can include external scripts using the Link the External Script in HTMLTo link an external script in HTML, use the Syntax<body>
<h1>My Web Page</h1>
<!-- External JavaScript -->
<script src="script.js"></script>
</body>
Link the Internal Script in HTMLTo include an internal (inline) script directly within the HTML document, use the Syntax<script> |
Reffered: https://www.geeksforgeeks.org
HTML |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 15 |