Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I agree that <code>meta</code> would fit better than an empty <code>span</code>. However (even <em>if</em> you could use them in <code>body</code>), note that you can’t just use custom <code>meta</code> keywords. In HTML5, only <a href="https://stackoverflow.com/a/16207631/1591669">defined/registered values</a> are valid.</p> <p>But you can have <code>meta</code> elements in <code>body</code>, if they are used for Microdata or RDFa. For example, RDFa <a href="http://www.w3.org/TR/2013/REC-html-rdfa-20130822/#extensions-to-the-html5-syntax" rel="nofollow noreferrer">extends</a> HTML5:</p> <blockquote> <p>If the <code>@property</code> RDFa attribute is present on the <code>link</code> or <code>meta</code> elements, they MUST be viewed as conforming if used in the <code>body</code> of the document. More specifically, when <code>link</code> or <code>meta</code> elements contain the RDFa <code>@property</code> attribute and are used in the <code>body</code> of an HTML5 document, they MUST be considered flow content.</p> </blockquote> <p>So you could create (or reuse an existing) vocabulary for your metadata. But, depending on your use case, this might be overkill.</p> <p>As an alternative to <code>span</code> I’d <a href="https://stackoverflow.com/a/14428316/1591669">use the <code>script</code> element as data block</a>:</p> <blockquote> <p>The <code>script</code> element allows authors to include dynamic script and <strong>data blocks</strong> in their documents. The element does not represent content for the user.</p> </blockquote> <p>For example:</p> <pre><code>&lt;script type="text/plain"&gt; &lt;!-- or whichever MIME type suits your need --&gt; &lt;!-- your data --&gt; &lt;!-- you could of course use data-* attributs on this script element, too --&gt; &lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload