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

2023-07-31前端开发问题
0

本文介绍了<s> 和有什么区别?和 <del>在 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.

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

    The End

相关推荐

layui 实现实时刷新一个外部的div
主页面上显示了一个合计,在删除和增加的时候需要更改这个总套数的值: //html代码div class="layui-inline layui-show-xs-block" style="margin-left: 10px" id="sumDiv"spanSOP合计:/spanspan${totalNum}/spanspan套/span/div 于是在我们删除这个条数据后,...
2024-11-14 前端开发问题
156

layui要如何改变时间日历布局大小?
问题描述 我想改变layui时间日历布局大小,这个要怎么操作呢? 解决办法 可以用css样式对时间日历进行重新布局,具体代码如下: !DOCTYPE htmlhtmlheadmeta charset="UTF-8"title/titlelink rel="stylesheet" href="../../layui/css/layui.css" /style#test-...
2024-10-24 前端开发问题
271

jQuery怎么动态向页面添加代码?
append() 方法在被选元素的结尾(仍然在内部)插入指定内容。 语法: $(selector).append( content ) var creatPrintList = function(data){ var innerHtml = ""; for(var i =0;i data.length;i++){ innerHtml +="li class='contentLi'"; innerHtml +="a href...
2024-10-18 前端开发问题
125

“数组中的每个孩子都应该有一个唯一的 key prop"仅在第一次呈现页面时
quot;Each child in an array should have a unique key propquot; only on first time render of page(“数组中的每个孩子都应该有一个唯一的 key prop仅在第一次呈现页面时)...
2024-04-20 前端开发问题
5

CoffeeScript 总是以匿名函数返回
CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)...
2024-04-20 前端开发问题
13

getFullYear 在一年的第一天返回前一年
getFullYear returns year before on first day of year(getFullYear 在一年的第一天返回前一年)...
2024-04-20 前端开发问题
6