Differences between 'url', 'src', and 'href'

OneChillDude picture OneChillDude · Aug 20, 2012 · Viewed 35.8k times · Source

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?

Answer

awiebe picture awiebe · Aug 20, 2012

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.