0
Why we use the 'Script' tag in HTML??. I would be really grateful if anyone explain this thing thoroughly
4 ответов
+ 2
hi! we use the 'script' tags (open and close) to indicate to the internet browsers who read the document HTML (markup language), that between this two Tags/Markups we use CODE JavaScript (programmation language).
So, it's like a switch to say to browsers :
(on = open tag) don't show everythings in the user screen (it isn't just formating text), you must use a different way to use and interprete this part of document.
(off = close tag) return to normal HTML interpretation.
+ 3
Script tags tell browsers that the text written between <script> and </script> is code of a programming language. (JavaScript by default)
+ 1
If we use script tag then our browser our code which is javascript code that mean by using this tag browser understand our js code and then browser provide outputs
0
to insert javascript code