The trick is to enclose the image and the license's link in a div tag and to use RDFa's about attribute to specify the resource. For example:
<div about="image.jpg">
<img src="image.jpg" alt="" />
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution Share-Alike 3.0</a>
</div>
The "about" attribute doesn't seem to validate (not as XHTML strict, not as HTML5), or am I missing something?
ReplyDeletewww.img4u.com
ReplyDeleteDownload Wallpapers. Sign Up For Free and you can upload your own wallpapers
wow, I wanted something like this along time ago
ReplyDeletewill it be considered anchor if put on another website?
@Philipp Lenssen,
ReplyDeletePerhaps you should try to validate it as XML ?(http://www.w3schools.com/Dom/dom_validate.asp says No errors found when the code snippet was validated.) I guess it is interpreted as XML.
XML is not HTML or XHTML
ReplyDelete@Christoph
ReplyDeleteYou are right, but probably Google is interpreting the code as if it is XML.
Is the new Youtube official yet? I have in in Windows 7 Firefox, Windows 7 Internet Explorer, Windows Vista Firefox, Windows Vista Chrome, and on my mom's Windows Vista Firefox.
ReplyDeleteSo everyone has to download more just to keep the computer happy?
ReplyDelete@Jon Morgan what do you mean?
ReplyDeleteThat's a little bulky for my taste. How about something like this:
ReplyDelete<img src="image.jpg" alt="" license="http://creativecommons.org/licenses/by-sa/3.0/" />
Scratch that. You're trying to keep the html valid.
ReplyDeletewbowsers is right. Webmasters should not be forced to use invalid HTML or extra divs. Google's example looks more like a way to spread awareness of creative commons to a viewer rather than hidden meta to help out Google search.
ReplyDeleteOn my site, it wouldn't make sense to add a cc link to every thumbnail or icon. Look at my site. There's just no practical use for Google's example on smaller images. There should also be a header option for image lisense to apply to a whole page than the Webmaster can override inline with wbowser's example.
I meant "that" the Webmaster..
ReplyDeleteThis is really an informative review.
ReplyDeleteThe videos really seems to have relevant ideas that was shared in making things clear.
thanks for posting!
Have a look at the RDFa W3C Recommendation for information about how to use RDFa and what to do to make it valid. ;)
ReplyDeleteYou're trying to keep the html valid.
ReplyDelete"Google's example looks more like a way to spread awareness of creative commons to a viewer rather than hidden meta to help out Google search."
ReplyDeleteI agree! I just want to tag my images as public domain so Google will pick them up as such. Why should I have to give 20 or so links to Creative Commons on each page to do so? It's going to look like a mess!