com.jdc.gui.html.tag
Class DocumentType
java.lang.Object
|
+--com.jdc.xml.Tag
|
+--com.jdc.xml.SimpleTag
|
+--com.jdc.xml.tag.DocumentType
|
+--com.jdc.gui.html.tag.DocumentType
- All Implemented Interfaces:
- Serializable
- public class DocumentType
- extends DocumentType
DocumentType represents an HTML or XHTML document type definition,
an optional part of an HTML document prolog. The document type definition (DTD)
specifies constraints on the valid tags and tag sequences that can exist in an
HTML or XHTML document.
If an XHTML declaration is present, the document type definition is specified after
the XHTML declaration. A reference to one of the following DTDs must be placed at
the beginning of every XHMTL document:
- Strict - All style attributes be placed in a separate CSS.
- Transitional - Allows the use of embedded style attributes for Web pages.
- Frameset - Allows the use of standard HTML frameset files.
Reference: An XHTML Primer
- Version:
- 1.0
- Author:
- Jay Damon
- See Also:
Declaration,
Serialized Form
|
Constructor Summary |
DocumentType()
Constructs a new DocumentType object. |
DocumentType
public DocumentType()
- Constructs a new
DocumentType object.
setFrameset
public DocumentType setFrameset()
- Sets the XHTML document type definition as Frameset. The Frameset DTD
is for the use of standard HTML frameset files.
- Returns:
- This document type definition tag.
setFrameset
public DocumentType setFrameset(boolean xhtml)
- Sets the XHTML or HTML document type definition as Frameset. Specify
true for an XHTML Frameset document type definition;
false for an HTML Frameset document type definition.
- Returns:
- This document type definition tag.
setStrict
public DocumentType setStrict()
- Sets the XHTML document type definition as Strict. Th Strict DTD
requires that all style attributes be placed in a separate Cascading Style
Sheet (CSS).
- Returns:
- This document type definition tag.
setTransitional
public DocumentType setTransitional()
- Sets the XHTML document type definition as Transitional. The
Transitional DTD permits the use of embedded style attributes for Web pages
that need to support browsers which do not support Cascading Style Sheets
(CSS).
- Returns:
- This document type definition tag.
setTransitional
public DocumentType setTransitional(boolean xhtml)
- Sets the XHTML or HTML document type definition as Transitional.
Specify
true for an XHTML Transitional document type definition;
false for an HTML Transitional document type definition.
- Returns:
- This document type definition tag.
Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.