How is Value determined for an Anchor Tag with Microdata?

纵然是瞬间 提交于 2019-11-28 13:44:09

The Microdata spec (which is now merely W3C Note) defines:

If the element is an a, area, or link element
The value is the absolute URL that results from resolving the value of the element's href attribute relative to the element at the time the attribute is set, or the empty string if there is no such attribute or if resolving it results in an error.

Exception: when the a/area/link element has an itemscope attribute, then the itemprop "value is the item created by the element", not the href value.

It seems I found the answer not long after posting this. However, rather than deleting the question, I'm sure there are others out there who are wondering the same thing.

The short answer is: It uses the href attribute.

The long answer can be found here: http://schema.org/docs/gs.html#advanced_canonical

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!