TYPE Attribute | type Property

Internet Development Index

Retrieves the Cascading Style Sheets (CSS) language in which the style sheet is written.

Syntax

HTML<STYLE TYPE = sType... >
ScriptingSTYLE.type [ = sType ]

Possible Values

sTypeString that specifies or receives the CSS language of the style sheet.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

The property can be any string, including an empty string. Valid style sheets for Microsoft® Internet Explorer 4.0 are set to "text/css".

Standards Information

This property is defined in HTML 4.0 Non-Microsoft link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

STYLE