The second example is not valid HTML. The quotes are optional when the value contains only letters, numbers, period, and hyphens, </code>0-9A-Za-z.-</code> basically. Browsers and some parsers will work around broken markup, but many won't.
Comment on Re^5: extracting link *and* tag content from "a href"