我觉得 HTML 中没有 preamble 元素有点奇怪。这意味着,如果带有序言的文章在没有或使用默认 CSS 的情况下呈现,读者将无法区分序言和正文。有谁知道这种情况下的最佳实践?当然,我可以添加一个序言类,如
<p class="preamble">New technologies will enable a breakthrough in...</p>
但这并不能解决根本问题。
最佳答案
如果我正确理解你的问题,你正在寻找 <details>
, <summary>
和<article>
HTML5 中的标签,也许:
<details open="true">
<summary>
A Bunch of Latin used by Printers...
</summary>
<article>
Lorem Ipsum Si Dolor Amet...
</article>
</details>
如果我误解了你的问题,请原谅我。
编辑:感谢 Alochi 指出“open”必须设置为“true”才能默认显示文章。
关于html - 缺失的前导元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6102534/