HTML Microdata
Based on an HTML document, this encoding processes nodes with Microdata-related attributes, such as itemscope, itemtype, and itemprop.
<html>
<body>
<div itemscope itemtype="https://schema.org/WebSite">
<a href="https://schemamarkup.app/" itemprop="url">
<span itemprop="name">Schema Markup</span>
</a>
</div>
</body>
</html>Content Attribute
The content attribute may be used on a <meta> element to specify a machine-friendly value of a property when it is not suitable for displaying to users (see Values section of the specification). While some publishers and examples use the content attribute on other elements, we annotate the non-standard usage with a warning.
<div itemscope itemtype="https://schema.org/Event">
<div itemprop="name">Steve's Party</div>
<div itemprop="startDate" content="2024-07-13T21:30-04:00">
Next Saturday, 9:30 pm
</div>
</div>
References
- Specifications: HTML, Microdata
- Media Type:
application/xhtml+xml(ortext/html,text/xhtml) - File Name:
*.html(or*.htm)