< script > < / script > questions

< script src= "" type= "text/javascript" > < / script >
< script src= "" type= "text/javascript" > < / script >
< script src= "" type= "text/javascript" > < / script >
< script src= "type=" text/javascript "> < / script >
< script src=" type= "text/javascript" > < / script >
< script src= "type=" text/javascript "/ >
< script >

    //js

< / script >
Why is the last introduction semi-closed? when the browser views source, you can see
< script src= "" type= "text/javascript" / >
< script >

.
    //js

< / script >
this part of the code is black, causing the method of js to fail to execute.
but then replace < script src= "" type= "text/javascript" / > with < script src= "" type= "text/javascript" > < / script >.

Mar.18,2021

script is a double tag, why is it written as a single


https://developer.mozilla.org.
script does not support semi-closed writing oh


Why should it be written in the form of a self-closing tag? There is no tag in HTML5 that has to be self-closing.

Menu