<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
This causes browsers to render the page in quirks mode and not care very much about standards. This makes it harder to get pages to render the same in the different browsers (Internet Explorer, Firefox, Chrome).
If you care about a correct layout of the page you would want something like:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Or if you're lazy, like I am, and maybe want to pretend to do HTML 5, use:
For Xpages it's simply a setting in the Application Properties, Xpages tab:
For a LotusScript agent as straightforward as printing the content-type, a blank line and then the doctype.
Print "Content-type: text/html" Print Print "<!DOCTYPE html>" Print "<html>" ...
For forms (and views that are captured in a $$ViewTemplate form) it's a bit harder, unless you know how to do it:
- Create a computed for display field named "$$HTMLFrontMatter"
- Hide it
- Set its value to"<!DOCTYPE html>" (or whatever doctype you prefer)