What are inline elements and block-level elements? #353
Replies: 2 comments 3 replies
-
Having said that, it is difficult to determine where to rewrite. If anyone (especially the maintainers of the English version of the document) thinks that the use of the expressions "inline element" and "block-level element" is a source of confusion, please comment. It will help us determine if the document should be revised. |
Beta Was this translation helpful? Give feedback.
-
Clearly HTML doesn't use these but CSS still uses these terms https://www.w3.org/TR/css-display-3/#inline-level and are very much required to explain layouts. I think these pages need to be moved to CSS documentation and reworded accordingly, so that readers will get the idea that these are CSS terms and not HTML, then there won't be any confusion.
If we do the above and link every occurrence of |
Beta Was this translation helpful? Give feedback.
-
In HTML LS or HTML5, the concepts of inline elements and block-level elements should have been removed. Why does MDN continue to describe inline elements and block-level elements?
I believe it would be more accurate to rewrite the description based on the categorization of elements in HTML5. And I think it will eliminate confusion. For example, the following statement is inaccurate.
Not only the a element, but also, for example, the del or ins elements can be parents of the p or div elements.
In addition, the current explanatory text is mixed with HTML 4.01-era explanations, giving the impression that it is difficult to understand.
On a related note, it is interesting to note that the terms inline element and block-level element appear here as well. I don't think we should confuse the inline-level and block-level of display property in CSS with the expressions inline element and block-level element in HTML. Don't you think these should be strictly differentiated and described?
I don't think we should describe expression the inline element or block-level element any more, do you? However, the page itself can remain. I suggest that the core of the description should be worded in a more HTML5-friendly manner.
Beta Was this translation helpful? Give feedback.
All reactions