What tag in HTML should I use without special meaning, only to carry meta data?

html, javascript, metadata

Solution

The data applies to the div, the attributes should be on the div. If you want to format your code with one item per line, then you can.

<div class="item"
     data-id="123"
     data-type="sometype"
     data-validate="true">

There are no elements designed for storing meta data that go in the document body.

Problem

Is there any meainingless HTML tag to carry additional meta data, for example attributes for JavaScript for specified block/area? like: ``` <div class="item"> <meaninglesselement data-id="123"> <meaninglesselement data-type="sometype"> <meaninglesselement data-validate="true"> ... </div> ``` I know that I can move `data-*` attributes to `div class="item"` but I want a solution for clean code, even if there will be a lot of parameters.

Original source