The id attribute in microformats

Is the id attribute allowed in microformats? Example ( hCard microformat):

<div class="tel" id="voice">
  <span class="type">Voice</span>
  <span class="value">(206) 555-1234</span>
</div>
<div class="tel" id="fax">
  <span class="type">Fax</span>
  <span class="value">(206) 555-5678</span>
</div>
+3
source share
1 answer

This is allowed but ignored by the standard. All properties must be declared by classes :

Elements with class names of the listed properties represent the values ​​of these properties.

+4
source

Source: https://habr.com/ru/post/1712951/


All Articles