Documentation/Mapping XHP to HTML5

From The Document Foundation Wiki
Jump to: navigation, search

XHP to HTML5 mapping

Global rules:

  • always preserve existing id=""
  • on textual tags, always add an id=""
XHP tags XHP Attributes HTML equivalent Notes
alt alt
body body
br br
caption caption for tables only. For img, TBD
emph b or strong
meta meta
paragraph role="heading" level="1, 2, ..., 6" h1, h2,..., h6 preserve id="xyz" in target tag
paragraph id= "xyz" p preserve id="xyz" in target tag
paragraph role="note" p with class="note"
paragraph role="tip" p with class="tip"
paragraph role="warning" p with class="warning"
image img preserve id="xyz" in target tag
title title
topic TBD