HTML语法--其中一个版本比另一个版本更好还是更“正确”?
<p><em lang="fr">Ceci est un paragraphe</em>. The remainder of this paragraph defaults to the English language.</p><p><em><span lang="fr">Ceci est un paragraphe</span></em>. The remainder of this paragraph defaults to the English language.</p>发布于 2022-07-26 08:22:10
您不需要使用span,lang属性是一个全局属性,可以添加到任何元素中。
另外,我们应该尽量减少div和span的使用,因为它们没有特殊的语义值。
https://stackoverflow.com/questions/68699873
复制相似问题