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 中,它们会影响网站排名吗?
基础教程推荐
- Chart.js 在线性图表上拖动点 2022-01-01
- Vue 3 – <过渡>渲染不能动画的非元素根节点 2022-01-01
- 如何使用JIT在顺风css中使用布局变体? 2022-01-01
- html表格如何通过更改悬停边框来突出显示列? 2022-01-01
- 用于 Twitter 小部件宽度的 HTML/CSS 2022-01-01
- 我可以在浏览器中与Babel一起使用ES模块,而不捆绑我的代码吗? 2022-01-01
- 如何使用TypeScrip将固定承诺数组中的项设置为可选 2022-01-01
- 自定义 XMLHttpRequest.prototype.open 2022-01-01
- Electron 将 Node.js 和 Chromium 上下文结合起来意味着 2022-01-01
- 直接将值设置为滑块 2022-01-01