What is the difference between the href and src in this article? The difference between the href and src in HTML is introduced, there is a certain reference value, the need for friends can refer to, I hope to help you.
Href:
HREF is an abbreviation for hypertext reference, which represents a hypertext reference. Used to establish a link between the current element and the document. Commonly used are: link, a.
The browser recognizes the document as a CSS document, downloads the document in parallel, and does not stop processing the current document.
This is also the reason to suggest using link instead of @import to load the CSS.
Src:
SRC is the abbreviation of source, and the content of SRC is an essential part of the page that is introduced.
The content that SRC points to is embedded in the document where the current label is located. Commonly used are: IMG, script, iframe.
When the browser resolves to the element, it pauses the browser's rendering, knowing that the resource is loaded.
This is also the reason to put the JS script at the bottom instead of the head.