Again while typing I read this question but that’s a different
one…and that too is not solved yet, as the person who’s answer is
marked as correct, says this in the endI don’t know direct answer
to your question, but I’m pretty curious about tag, too.
Finding answer would probably include some web archives digging.
So the question is quiet simple, why are we using src attribute for <script> tag but href for a <link> tag, now that confuses me many times when am including stylesheets and scripts…why it can’t be same? any specific reason for this?
For example
<script href="#"></script>
<link href="#" />
Or
<script src="#"></script>
<link src="#" />
A link points somewhere via a hypertext reference (hence
href). This is why we use<a hreftoo.A script takes its source from elsewhere and is embedded into the current page, hence
src. Compare<img srcEDIT: Of course, another equally valid answer would be “It just does!” :p