Possible Duplicate:
Difference between SRC and HREF
When writing html/css, it seems like these all do the exact same thing. Obviously this is not the case, and if you 'href' when your supposed to 'src' your gonna have a bad time. But my question is, is there an easy way to remember which ones do which, and when they are used?
url
.href
(short for Hypertext REFerence) for all kinds of links, including tags a
and link
.src
.src -- I want to load up this resource for myself.
href -- I want to refer to this resource for someone else.
url -- A script wants to use this url as a variable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With