<引用>作为语义标记的一部分引用>
我开发的网站之一有很多相互链接的信息; 我们有公司,我们有为这些公司提供的产品。 公司页面链接到列出该公司产品的页面,反之亦然。
来自 HTML 规范:
引用: 包含对其他来源的引用或引用。
这是否意味着我可以(语义上)使用 作为公司链接? 在公司页面上的产品怎么样?
如果没有,有人可以告诉我这个“正确”的语义标签是什么吗?
One of the sites I develop has lots of information linked between each other; we have companies, we have products for those companies. The company page links to the page listing the products for that company, and vice versa.
From the HTML spec:
CITE:
Contains a citation or a reference to other sources.
Does this imply that I could (semantically) use a <cite>
for a company link? What about on the company page to a product?
If not, could someone tell me what might be the "correct" semantic tag for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(2)
如果您只是链接到其他页面,那么从语义上讲,您应该只使用
。 如果您引用一小段信息(例如问题中的 HTML 规范中的信息)并提供原始来源的链接,则可以使用
。 将其视为书籍或研究论文中的引用。
If you're just linking to other pages then semantically you should just use
<a href=...>
. If you're quoting a small piece of information, like the information from the HTML spec in your question, and providing a link to the original source, you might use<cite>
. Think of it as a citation in a book or research paper.我不确定 cite 是否旨在标记链接 - 您可能正在使用链接的 rel 属性查看类似于更专业(较少人际)XFN 的内容。
引用更多的是用于标记文章或其他创作作品的标题。
XFN 专门用于标记您(或您的公司)与您链接到的个人或公司之间的关系。 我不确定公司链接的 xfn 值(如果有)是多少。
http://reference.sitepoint.com/html/xfn
您可能会考虑的是详细信息会被使用吗? 语义标记虽然是一个崇高的方向,但在(由人类)查看或(由程序)解析资源时尚未得到充分利用。
I'm not sure that cite is intended to mark up links - you may be looking at something akin to a more professional (less inter-personal) XFN using the rel attribute of the link.
Cite is more for marking up titles of articles or other created work.
XFN is specifically for marking up the relationship you (or your company) have with the person or company you are linking to. What I'm not sure of is what xfn values there are (if any) for company links.
http://reference.sitepoint.com/html/xfn
What you might consider is in what detail will the information be used? Semantic markup, although a noble direction to head in, is not yet utilised to it's full extent when looking at (by a human) or parsing (by a program) a resource.