重要吗<strong>在 <em>或 <em>在<强>? [英] Does it matter <strong> in <em> or <em> in <strong>?
本文介绍了重要吗<strong>在 <em>或 <em>在<强>?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在中
有关系吗
<p><strong><em>Some text</em></strong></p>
还是在
?
<p><em><strong>Some text</strong></em></p>
哪个语义正确且更易于访问?
Which is semantically correct and more accessible?
更新:
屏幕阅读器在这两种情况下的表现如何?
How screen reader would behave in both situation?
推荐答案
语法正确但语义不正确. 是
的高阶"形式.如果您正在寻找
和
的效果,请使用 CSS.请记住,不要因为它们的外观而选择元素,而是因为它们的含义.
Syntactically correct but not semantically correct. <strong>
is an "higher order" form, so to speak, of <em>
. If you're looking for the effect of <b>
and <i>
, use CSS. Remember to not choose elements because of how they look but what they mean.
这篇关于重要吗<strong>在 <em>或 <em>在<强>?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文