Table of contents
Dynamic HTML (DHTML) is the combined use of HTML
to create dynamic Web pages.
DHTML involves the manipulation of the HTML Document Object Model (DOM). Consequently, it's rather important your HTML document is well formed:
- Close all container tags such as p, div, and li
- Always use a DOCTYPE definition.
- Use semantic rather than presentational HTML, i.e., use tags that describe meaning rather than presentation such as strong rather than b.
- Validate your HTML (the W3C has an often used validator at http://validator.w3.org).
In addition to valid HTML, ensure that you are using CSS for the presentation of your Web pages and you're using external style sheets. HTML gives Web pages structure, CSS should be used to define how they look.