HTML Script Tag

17/02/2023
HTML Script

The <script> tag is used to call the Javascript codes in the HTML page that creates the web page from another file or to run the Javascript codes within the current page.

Internal <script>

It is used by writing Javascript codes within the <script></script> tags of the HTML page in internal script usage.

<script> 
   console.log('Internal Script'); 
</script>

External <script>

In the use of external scripts, external Javascript codes are called with the src="" attribute of the <script> tag in the HTML page.

<script src="https://juniortoexpert.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2"></script>

Default <script> CSS Structure

script {
   display: none; 
}