What is the difference between lt;sgt; and lt;delgt; in HTML, and do they affect website rankings?(lt;sgt; 和有什么区别?和 lt;delgt;在 HTML 中,它们会影响网站排名吗?)
问题描述
<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.
这篇关于<s> 和有什么区别?和 <del>在 HTML 中,它们会影响网站排名吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:<s> 和有什么区别?和 <del>在 HTML 中,它们会影响网站排名吗?


- Flexslider 箭头未正确显示 2022-01-01
- 400或500级别的HTTP响应 2022-01-01
- 如何使用 JSON 格式的 jQuery AJAX 从 .cfm 页面输出查 2022-01-01
- addEventListener 在 IE 11 中不起作用 2022-01-01
- 失败的 Canvas 360 jquery 插件 2022-01-01
- CSS媒体查询(最大高度)不起作用,但为什么? 2022-01-01
- Quasar 2+Apollo:错误:找不到ID为默认的Apollo客户端。如果您在组件设置之外,请使用ProvideApolloClient() 2022-01-01
- Css:将嵌套元素定位在父元素边界之外一点 2022-09-07
- 使用RSelum从网站(报纸档案)中抓取多个网页 2022-09-06
- Fetch API 如何获取响应体? 2022-01-01