可以将 <ruby> 标签放在 <hx> 标签内吗?
Is it okay to put <ruby> tag inside <hx> tags?
我正在为一个日语网站开发一个 UI,我必须在其中使用一个日语单词及其对应的英语单词。我想知道是否可以在任何标题标签 <h1>
-<h6>
中使用 <ruby>
标签。
我在 VS Code 中使用 W3C 验证扩展,它没有显示任何错误。我在互联网上搜索过类似的案例,但一无所获。
<h3 class="division-menu__heading">
<ruby class="division-menu__annotation">
折込広告
<rtc lang="en"><rt>Insertion of the advertisement</rt></rtc>
</ruby>
</h3>
是。 <ruby>
is an acceptable child of any element that allows phrasing content.
和<h1>
到<h6>
all accept的分词内容:
我正在为一个日语网站开发一个 UI,我必须在其中使用一个日语单词及其对应的英语单词。我想知道是否可以在任何标题标签 <h1>
-<h6>
中使用 <ruby>
标签。
我在 VS Code 中使用 W3C 验证扩展,它没有显示任何错误。我在互联网上搜索过类似的案例,但一无所获。
<h3 class="division-menu__heading">
<ruby class="division-menu__annotation">
折込広告
<rtc lang="en"><rt>Insertion of the advertisement</rt></rtc>
</ruby>
</h3>
是。 <ruby>
is an acceptable child of any element that allows phrasing content.
和<h1>
到<h6>
all accept的分词内容: