2.1.3.1.4.1 HTMLTagParameter HTML Fragment

The HTMLTagParameter HTML fragment is a WORD ([MS-DTYP]) value comprised of the flags specified in this section: Destination, TagType, and other flags. This fragment SHOULD NOT<5> be emitted, except as specified in section 2.1.3.2. Although the HTMLTagParameter HTML fragment is defined in terms of bitmasks, it appears in this specification as a decimal value.

Destination Flag

The Destination flag defines where the HTML content was located relative to the <HTML>, <HEAD>, and <BODY> elements. The following table specifies the values for the Destination flag.

Name

Value

Description

INBODY

0x0000

The corresponding fragment of original HTML SHOULD appear inside of a <BODY> HTML element.

INHEAD

0x0001

The corresponding fragment of original HTML SHOULD appear inside of a <HEAD> HTML element.

INHTML

0x0002

The corresponding fragment of original HTML SHOULD appear inside of an <HTML> HTML element.

OUTHTML

0x0003

The corresponding fragment of original HTML SHOULD appear outside of an <HTML> HTML element.

TagType Flag

The TagType flag defines the type of HTML content that is stored in the CONTENT HTML fragment in an \*\htmltag destination group. The following table specifies the values for the TagType flag.

Name

Value

Description

TEXT

0x0000

This group encapsulates a text fragment rather than any HTML tags.

HTML

0x0010

This group encapsulates the <HTML> HTML element.

HEAD

0x0020

This group encapsulates the <HEAD> HTML element.

BODY

0x0030

This group encapsulates the <BODY> HTML element.

P

0x0040

This group encapsulates the <P> HTML element.

STARTP

0x0050

This group encapsulates an HTML tag that starts a paragraph other than the <P> HTML element.

ENDP

0x0060

This group encapsulates an HTML tag that ends a paragraph other than the <P> HTML element.

BR

0x0070

This group encapsulates the <BR> HTML element.

PRE

0x0080

This group encapsulates the <PRE> HTML element.

FONT

0x0090

This group encapsulates the <FONT> HTML element.

HEADER

0x00A0

This group encapsulates heading HTML tags such as <H1>, <H2>, and so on.

TITLE

0x00B0

This group encapsulates the <TITLE> HTML element.

PLAIN

0x00C0

This group encapsulates the <PLAIN> HTML element.

RESERVED1

0x00D0

Reserved, MUST be ignored.

RESERVED2

0x00E0

Reserved, MUST be ignored.

UNK

0x00F0

This group encapsulates any other HTML tag.

The following table specifies the values for the Other flags field.

Name

Value

Description

INPAR

0x0004

The corresponding fragment of the original HTML SHOULD appear inside a paragraph HTML element.

CLOSE

0x0008

This is a closing tag.

MHTML

0x0100

This group encapsulates MIME Encapsulation of Aggregate HTML Documents (MHTML); that is, an HTML tag with a rewritable URL parameter. For more details about the MHTMLTAG destination group, see section 2.1.3.1.5.