<script> called type like type="text/javascript

where should i put to add the attribute to called type like type=“text/javascript”. This tells the web browser that the script we are linking to is JavaScript?

the type attribute should be added to <script> tag, the type attribute tells script what type of file it can except. src tells the <script> tag where the JS script is located (where it source is)

1 Like