就像...假设我想创建一个 <selection>
标签以便在某些文本正文中存储用户选择。
这会给浏览器带来任何问题(例如渲染等)吗?
最佳答案
考虑使用 HTML5 <mark>
元素。
参见:http://dev.w3.org/html5/spec/text-level-semantics.html#the-mark-element
关于html - W3C 标准 : Is it bad form to create a new tag for custom app parsing purposes?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8096885/