重要吗<strong>在 <em>或 <em>在<强>?

重要吗<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.