In this section, we discuss the various uses of the DOCTYPE declaration for both Standards-based Web Development and its utilization in Domino Web development best practices.
Setting DominoCompleteDoctype
You can change the DOCTYPE of the HTML pages Domino generates by changing an entry in the Domino server's notes.ini file.
 | Using DominoCompleteDoctype
This setting does not cause Domino to change the HTML it creates. It only changes the DOCTYPE line in the head section of the HTML page. |
Set the DominoCompleteDoctype environment variable in notes.ini or preferably in a configuration document in the Domino Directory. It has three different values:
- 0 = <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- 1 = <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- 2 = <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
A value of 0 or no entry, is the default and leaves the browsers in quirks mode. A value of 1 or 2 puts the browser into standard compliance mode. If you are including Domino generated controls, then use 1, because a value of 2 causes validation errors.
 | Compliance mode and CSS
When the browser is in standard compliance mode, the CSS selectors become case-sensitive.
Example HTML:
<div id="frame">
The following CSS selector does not work:
The following CSS selector works:
|
For information about how to change the content type of a design element, refer to Changing the content type of a design element