You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src is used to replace current element, href is used to build connection between two files.
<scriptsrc="script.js"></script>
When the browser parses this line of code, it will pause any other execution until the browser finishes executing this line and downloading the source.
That is the reason why we should put Javascript on the end of the file, instead of on the top.
href is the abbr of Hypertext Reference, it connected to the target source file
<link href="style.css"rel="stylesheet"/>
The browser will recognize the file is a css file, and then download the resource but NOT stop to execute current file
That is why we should use link to load css, instead of @import
The text was updated successfully, but these errors were encountered:
src is used to replace current element, href is used to build connection between two files.
When the browser parses this line of code, it will pause any other execution until the browser finishes executing this line and downloading the source.
That is the reason why we should put Javascript on the end of the file, instead of on the top.
href is the abbr of Hypertext Reference, it connected to the target source file
The browser will recognize the file is a css file, and then download the resource but NOT stop to execute current file
That is why we should use link to load css, instead of @import
The text was updated successfully, but these errors were encountered: