SRC is the abbreviation for source, which points to the location of the external resource, and the content that is pointed to is embedded in the document where the current label is located. The resource it points to is downloaded and applied to the document when the SRC resource is requested. Elements such as JS scripts, IMG images, and frame.
<script src= ". js" ></script> when the browser resolves to the element, it pauses the download and processing of other resources until the element is loaded, compiled, and executed. So the JS script should be placed at the bottom rather than the head.
HREF is the abbreviation of hypertext reference. Point to the location where the network resource resides. Used to establish a connection between the current document and the referencing resource.
<link href= ". css" rel= "stylesheet"/> The browser recognizes that the file is a CSS file, it downloads the resource in parallel and does not stop processing the current document.
The difference between src and href