TEI is a text markup standard created by the Text Encoding Initiative.

An outline of TEI markup

<tei>
  <teihdr>
    <!-- lots of header stuff -->
  </teihdr>
  <body>
     <div>
        <p>Some text</p>
     </div>
  </body>
</tei>