< s>之间的区别是什么?和< del>在HTML中,它们会影响网站排名? [英] What is the difference between <s> and <del> in HTML, and do they affect website rankings?

查看:208
本文介绍了< s>之间的区别是什么?和< del>在HTML中,它们会影响网站排名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< s> < del> 之间有什么区别?我已阅读此处 < b> 和< strong> ,这是否适用于< s> <德尔> ?此外,搜索引擎如何解释这种语义差异,以及它们对排名会产生什么影响?是否还有其他标签影响搜索排名?

c>和< del> 都存在于HTML规范中。


  • < del> 元素表示从文档中删除。

  • < s> 表示不再准确或不再相关的内容。



也就是说,它们在语义上实际表示不同的东西。如果您有一个现有文档并且希望指出文档中已经被删除的文本,则会使用< del> 。这与文档中不再准确但尚未删除的文本不同(您可以使用< s> )。



即使大多数浏览器在默认情况下都确实使用它们,您也不应该使用或依赖任何一种样式。您应该只依靠CSS进行演示。



由于搜索引擎工作方式的兼容性,很难说一个标签或另一个标签是否会对其产生影响如何创建关键字并将您的内容编入索引。您应该专注于创建语义正确的优质内容,并且您的网站排名将随之而来。


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> and <del> both still exist in the HTML specification.

  • The <del> element represents a removal from the document.
  • The <s> represents contents that are no longer accurate or no longer relevant.

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).

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.

这篇关于&lt; s&gt;之间的区别是什么?和&lt; del&gt;在HTML中,它们会影响网站排名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆