next up previous contents
Next: The structure of SGML Up: What is SGML? Previous: Where is SGML used?

Examples of SGML markup

From the Gentle Introduction:

 <anthology>
   <poem><title>The SICK ROSE</title>
      <stanza>
           <line>O Rose thou art sick.</line>
           <line>The invisible worm,</line>
           <line>That flies in the night</line>
           <line>In the howling storm:</line>
      </stanza>
      <stanza>
           <line>Has found out thy bed</line>
           <line>Of crimson joy:</line>
           <line>And his dark secret love</line>
           <line>Does thy life destroy.</line>
      </stanza>
   </poem>
           <!-- more poems go here    -->
 </anthology>

An HTML example:

<P><BR>
Doctors recommend this resort for the treatment of
circulatory and central nervous systems illnesses. At
the same time Tusnad Spa is an ideal place for
tourists who enjoy an active relaxation.
<P>
<H2>Entertainment</H2>
The walks to the Hawk's Rock, to Lake St. Anna, to
the Lover's Clearing, the wanderings among fir trees,
the swimming pools with mezothermal water, the
special taste of the local bread rolls, the day and
night cafes, the rides by carriages drawn by horses,
the tours by coach to Lacul Rosu - Bicaz Pass or to
Sovata - Corund are some of the special attractions
of the resort.
<BR>
<CENTER>St. Anna's Lake <IMG SRC="t51.gif"></CENTER>
<BR>
<BR>
The resort has also convenient sporting facilities
for those who would like to play tennis or soccer.
Excellent possibilities for hickings. Sauna and
swimming pool.  Discotheques all evenings.

An example from CES, the Corpus Encoding Standard:

  <div id="Oro.1.2" type=chapter n=1>
    <head>1</head>
    <p id="Oro.1.2.2"> 
      <s id="Oro.1.2.2.1">&Icirc;ntr-o zi
      senin&abreve; &scedil;i friguroas&abreve; de
      aprilie, pe c&acirc;nd ceasurile b&abreve;teau
      ora treisprezece, <name type="person">Winston
      Smith</name>, cu b&abreve;rbia
      &icirc;nfundat&abreve; &icirc;n piept pentru a
      sc&abreve;pa de v&acirc;ntul care-l lua pe sus,
      se strecur&abreve; iute prin u&scedil;ile de
      sticl&abreve; ale <name type="place">Blocului
      Victoria</name>, de&scedil;i nu destul de
      repede pentru a &icirc;mpiedica un v&acirc;rtej
      de praf &scedil;i nisip s&abreve;
      p&abreve;trund&abreve; o dat&abreve; cu el.
      </s>
    </p>
 ...
  </div>



Tomaz Erjavec
1/9/2000