HTML5<文章>对于电子商务产品

发布于 2024-11-24 10:27:22 字数 290 浏览 1 评论 0原文

新的 HTML5 文章标签看起来非常伟大和美妙,这里和其他地方已经有很多关于它的用途的讨论。

不幸的是,所有这些讨论似乎都是在博客或新闻网站的背景下进行的,其中的内容只是内容。

在电子商务网站中,要问的最大问题是,我现在如何标记产品?

以规范为指导,似乎可销售的物品确实是可以联合出售的独特物品(而且经常如此)。文章标签看起来很匹配,但我没有看到它以这种方式使用。

除了所有示例博客等之外,这里是否合适,因为它们似乎更直观地适合标签名称?或者我对规格的要求太高了?

任何指导将不胜感激。

The new HTML5 article tag all seems very great and wonderful and there has been much discussion here and elsewhere about its uses.

Unfortunately, all this discussion seems to be in the context of blog or news sites where the content is all just that, content.

In an ecommerce site, the biggest question to be asking is, how do I now mark up a product?

Taking the spec for guidance, it seems that a saleable item is indeed something distinct that could be syndicated (and often is). The article tag seems like a good match, yet I see no mention of its use in this way.

Is it appropriate here but all the examples blogs etc. because they seem to fit a bit more intuitively with the name of the tag? Or am I stretching too hard at the spec?

Any guidance would be much appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

简美 2024-12-01 10:27:22

请参阅以下 W3C 规范的引用。也许 article 是合适的,因为产品可以被视为“独立的内容项”。

article 元素表示页面的一个组件,该组件包括
文档、页面、应用程序或站点中的独立组成部分
并且旨在可独立分发或可重复使用,
例如在联合组织中。这可以是论坛帖子、杂志或
报纸文章、博客条目、用户提交的评论、
交互式小部件或小工具,或任何其他独立项目
内容。

尽管不使用语义元素,您可能希望查看 schema.org 中的产品架构

See the following quote from the W3C spec. Perhaps article is suitable, as a product can be considered an "independent item of content."

The article element represents a component of a page that consists of
a self-contained composition in a document, page, application, or site
and that is intended to be independently distributable or reusable,
e.g. in syndication. This could be a forum post, a magazine or
newspaper article, a blog entry, a user-submitted comment, an
interactive widget or gadget, or any other independent item of
content.

Although not using semantic elements, you may wish to look at the Product schema from schema.org.

捎一片雪花 2024-12-01 10:27:22

您应该看看这篇文章

看起来

You should take a look at this article

Looks like <article> is not that bad an idea. I am using pointers from here and http://schema.org/Product for an e-commerce site project.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文