I want to use the h-card microformats on my new website.
How do I add social media profiles like twitter, facebook, etc to my h-card in a correct way?
For phone numbers it is possible to add a type attribute. Like 'cell', 'home', or whatever you want.
Is it OK when I do this with social media profiles too? Like:
<span class="u-url">
<span class="type">Twitter</span>:
<span class="value">http://twitter.com/blabla</span>
</span>
According to this page of the documentation this should be possible. But all the tutorials I've found about h-card or hcard just add all the social media profiles without a type attribute. So I'm not sure what's the right way to do it.
There is a note on the microformats2 site at the microformats wiki:
That means that the value-class-pattern is not yet supported by the mf2 spec, but you can try the vendor prefixes and use for example
u-x-twitter u-urlinstead ofu-url.This for example:
would be interpreted like:
BTW: You can try/validate your code here: http://pin13.net