0

I'm building a catalogue of books and scientific journals. Each book or journal will have an page in which various details about the item will be shown.

What would be the best html5 element to use for some of the item metadata - eg number of pages, author, etc?

Should I just be using <div> or <span> - I can't see a semantic element that is particularly suitable.

Sirko
  • 65,767
  • 19
  • 135
  • 167
anu
  • 271
  • 1
  • 13

2 Answers2

1

you can use any html element and add microdata http://microformats.org/wiki/html5

values for books can be found here http://schema.org/Book

kevinq
  • 89
  • 1
  • 14
1

For name-value groups there is the dl element:

Name-value groups may be terms and definitions, metadata topics and values, questions and answers, or any other groups of name-value data.

Example:

<dl>
  <dt>Number of pages</dt>
  <dd>120</dd>
  <dt>Author</dt>
  <dd>John Doe</dd>
</dl>
unor
  • 82,883
  • 20
  • 183
  • 315