Getting XHTML compliant output

HTML compliant tags are generated by default: <img ...>, if you prefer to have XHTML compliant tags like <img ... />, simply set the $dsg_xhtml variable to TRUE:

  // generate XHTML compliant (self closing) image tags
  $dsg_xhtml = TRUE;
<?php include 'dsg.php'; ?>

If you use multiple gallery instances on one page combined with XHTML output – please read Multiple galleries on one page section.