IBM®
Skip to main content
    Country/region [select]      Terms of use
 
 
    
     Home      Products      Services & solutions      Support & downloads      My account     
 
developerworks > Dashboard > IBM Lotus Domino Web Application Development > ... > A design elements overview > Working with the DOCTYPE
developerWorks
Log In   View a printable version of the current page.
Overview Spaces Forums Blogs Podcasts Wikis Exchange
Working with the DOCTYPE
Added by schenkew@us.ibm.com, last edited by jservais on Apr 03, 2008  (view change)
Labels: 
(None)

 This is a community wiki. Be sure you are logged in to edit, comment, and add pages. Not a member yet? It's free and simple. Click Login in the upper right corner and Register.
View a PDF of the original wiki content produced in March 2008 by Lotus and IBM Redbooks.
Table of contents | Previous | Next

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:

#Frame {...}

The following CSS selector works:

#frame {...}

For information about how to change the content type of a design element, refer to Changing the content type of a design element


    About IBM Privacy Contact