· December 28, 2014
I have a question regarding the use of href vs src in HTML.
I feel that href sounds more like an "adress linking-type" of atribute, since it stands for "hyper reference" which is a linked reference if you think about it.
src on the other hand feels more like it would refer to something on your own computer, don't ask me why, it just feels that way.
but why exactly is the <img> tag using src for linking in a picture when it often uses a url from the web rather than a file on the computer, but the <link> tag uses href for the css file, even though it can be linked directly from the computer, and not only from an online library like bootstrap?
What is the difference between src and href?