Dirhtml can generate web pages compliant with strict or transitional XHTML 1.0 . XHTML is very similar to HTML 4.01, with a few exceptions, and will (theoretically) be its successor.
Naturally, if a script isn't XHTML compliant, files generated using it will not be XHTML compliant either.
For more information on xhtml, try a Google search or this page.
Some of the differences between XHTML 1.0 and HTML 4.0 include:
- Tag names must be in lowercase (for example: <table>, not <TABLE>).
- All tags must be properly closed. (for example: <p></p>, not just <p>).
- Attributes must be quoted. (for example: cellspacing="1", not cellspacing=1)
- HTML tags that don't have closing tags need to end with /> (for example: <br />)
- <a name="..."> tags are not supported, use <a id="...">.
- bgcolor is not a valid <td> attribute. Use a class or style instead (for example: <td class="...">).
- Scripts need to be in CDATA sections. For example, this is correct syntax:
<script type="text/javascript">
<!--
/* <![CDATA[ */
str = "<p>This file was created on: " + document.lastModified + "</p>";
document.write (str.fontsize(2));
/* ]]> */
-->
</script>
The target doctype can be changed on the Miscellaneous page or by redefining /DOCTYPE in a script.