<s> 和有什么区别?和 <del>在 HTML 中,它们会影响网站排名吗?

2022-01-18 00:00:00 tags html seo

<s><del>有什么区别?我已阅读 here,<b><strong>,这是否适用于 <s><del>?此外,搜索引擎如何解释这种语义差异(如果有的话)以及它们对排名有何影响?还有其他影响搜索排名的标签吗?

What is the difference between <s> and <del>? I have read here that there are semantic differences between <b> and <strong>, does this apply to <s> and <del>? Additionally, how are such semantic differences, if any, interpreted by search engines and what affect would they have on rankings? Are there any other tags that affect search rankings?

推荐答案

<s><del> 都仍然存在于 HTML 规范中.

<s> and <del> both still exist in the HTML specification.

p>

  • <del> 元素表示从文档中删除.
  • <s> 表示不再准确或不再相关的内容.
  • 也就是说,它们实际上在语义上代表了不同的事物.如果您有一个现有文档并且想要指示文档中的文本,但已被删除,则将使用 <del>.这与文档中不再准确但尚未删除的文本不同(您可以为此使用 <s>).

    That is to say that they actually represent different things semantically. Specifically <del> would be used if you had an existing document and wanted to indicate text that was in the document, but has been removed. This would be different than text in a document that is no longer accurate, but that has not been removed (you could use <s> for that).

    您不应该使用或依赖其中任何一个来进行样式设置,即使大多数浏览器默认设置了删除线.你应该只依赖 CSS 来展示.

    You should not use or depend on either for styling even though most browsers do have them strike-through by default. You should only rely on CSS for presentation.

    由于搜索引擎工作方式的反复无常,很难说一个标签或另一个标签是否会对关键字的创建方式和您的内容的索引方式产生影响.您应该专注于创建语义正确的优质内容,您的网站排名也会随之而来.

    Due to the mercurial nature of how search engines work, it's very difficult to say whether one tag or another will make a difference on how keywords are created and your content is indexed. You should focus on creating good content that is semantically correct, and your website rank will follow.

相关文章