Forums » Themes and Public Display

Definition List tags vs. H2 tags

(2 posts)
  • Started 2 months ago by myotus
  • Latest reply from JeremyBoggs
  1. 2 months ago # | |

    I was wondering.... As I am working with Omeka and styling it, it seems to me that the metadata would be cleaner and better structured wtih Definition List tags rather than h2 tags both from styling and accessibility standpoints.

    <b>H2 Heading tag:</b>

    <div id="publisher" class="field">
    <h2>Publisher</h2>
    <div class="field-value"><p>Minnesota Historical Society</p></div>
    </div>

    <b>Definition List tag:</b>

    <dd id="publisher" class="field">
    <dt>Publisher</dt>
    <dl>Minnesota Historical Society</dl>
    </dd>

    What are others thoughts on this?

  2. 1 month ago # | |

    Hi myotus,

    While I think using a definition list is OK in this instance, I'm not sure that it would really be "cleaner." I personally am reluctant to use definition lists except for 1) acutally definiting terms, or 2) marking up dialogue or conversation. This follows the W3C's recommentation. Regardless, you could mark up the items/show page with definition lists and style accordingly, and it would work fine.

RSS feed for this topic

Reply

You must log in to post.