Link the Internal Script in HTML
To include an internal (inline) script directly within the HTML document, use the <script>
tag without the src
attribute
Syntax
<script>
// Your JavaScript code goes here
console.log("Hello, World!");
</script>
To include an internal (inline) script directly within the HTML document, use the <script>
tag without the src
attribute
<script>
// Your JavaScript code goes here
console.log("Hello, World!");
</script>