I am working on a website where users can post comments. I intend to use the <ins>
-element herefore. When comments are inaccurate, they will be marked as deleted using the <del>
-element.
My first question is whether I use the semantics of these elements correctly?
It surprised me when I saw at W3C that these two elements can contain block-level-elements inside it since that is usually not the case for text-elements who are set to display: inline;
(cannot have a width, height etc.). I checked the computed browser value which is definately display: inline;
for both <del>
and <ins>
.
So my second question is how the browser makes this special behavior to work? (Or is it even special? - am I missing something?)