< strong>是否重要?在< em>中或< em>在< strong>中? [英] Does it matter <strong> in <em> or <em> in <strong>?
本文介绍了< strong>是否重要?在< em>中或< em>在< strong>中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在< em>
<p><strong><em>Some text</em></strong></p>
或< em>
c $ c>< strong> ?
or <em>
in <strong>
?
<p><em><strong>Some text</strong></em></p>
哪个在语义上是正确的并且更易于访问?
Which is semantically correct and more accessible?
更新:
两种情况下屏幕阅读器的行为如何?
How screen reader would behave in both situation?
推荐答案
语法上正确,但语义上不正确。 < strong>
可以说是< em>
的高阶形式。如果要查找< b>
和< i>
的效果,请使用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>在< strong>中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文