In this section, we discuss the DOCTYPE declaration for an HTML page. The <!DOCTYPE> declaration is the first tag in your document. It comes before the <html> tag and tells the browser which HTML or XHTML specification the document uses.
The six current specifications are highlighted in the following table.
| Type, tag syntax, and explanation |
HTML or XHTML Strict DTD: Used to enforce strict HTML standards and used with CSS.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
| |
HTML or XHTML Transitional DTD: Used when you need to use font and display formatting, when CSS is not feasible.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
HTML or XHTML Frameset DTD: Used when your web site or Web page uses frames.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> |
You have some options on configuring the DOCTYPE for your Web pages in Domino, even though Domino automatically self generates the DOCTYPE tag. See the section on working with the DOCTYPE tag in Domino for more details.
For further information about the DOCTYPE tag, you can reference the World Wide Web Consortium (W3C
) Web site for current standards and definitions.
In Lotus Notes 8, you are able to change the doctype declaration by adding on the form field "$$HTMLFrontMatter", which contains your own declaration. If you put this field in shared subform and that subform enclose in all forms then you will have all db declared same way.