htmlcssurlhrefsrc

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


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 you're supposed to 'src' you're going to have a bad time. But my question is, is there an easy way to remember which ones do which, and when they are used?


Solution

    1. In CSS, it's always url.
    2. In HTML:
      1. It's href (short for Hypertext REFerence) for all kinds of links, including tags a and link.
      2. When it's not a link, you are setting the source, so it's src.