Am I mistaken in believing that the <details> element is not a block level element?
I want to know for sure if <details>- a block level element. The reason I ask is this:
- MDN has a "complete" list for all block level elements, but is
<details>not in the list. - The W3C specification in this element does not mention that it is a block level element
- Same as # 2, but for MDN a resource
- Same as # 2 for the W3C HTML5 Specification
and
- The specification in No. 3 has code for
<details>. When you open this Codepen in Firefox (54.0.1) and check the element<details>, it isinline, but when you open the same Codepen in Chrome (59.0.3071), the same element is set asblockon the User Agent table.
Is the element <details>inline or blocky or browser dependent?
+4
2 answers