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 > ... > HTML primer > DOCTYPE
developerWorks
Log In   View a printable version of the current page.
Overview Spaces Forums Blogs Podcasts Wikis Exchange
DOCTYPE
Added by christoohey, last edited by jservais on Mar 31, 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.

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.

Posted by bartycz at Jun 11, 2008 09:35 | Permalink

    About IBM Privacy Contact