STYLE XHTML Element
The STYLE element defines a set of CSS style rules for the page. This element is not rendered and requires a closing tag.
Using this Element
There are some common properties and collections that apply to all the elements of the document object model, see Common Properties for All DOM Elements in Internet Explorer Mobile.
This element can be used within a web page with attributes.
This element can be used within scripts where it will have properties, events, methods and collections.
Attributes
Attribute | Value | PPC | SP | Description |
---|---|---|---|---|
MEDIA | Yes | Yes | Specifies the type of media for which the CSS style rules were intended. If a value is not specified or the screen, handheld, or all value is specified, the style is used. Otherwise, the style is ignored. | |
all | Yes | Yes | Default. Intended for all devices. | |
handheld | Yes | Yes | Output is intended for handheld devices. | |
screen | Yes | Yes | Output is intended for computer screens. | |
TYPE | Yes | Yes | Retrieves the CSS language in which the style sheet is written. Internet Explorer Mobile assumes that the type is text/css and ignores the type | |
text/css | Yes | Yes | Internet Explorer Mobile assumes that the type is text/css and ignores the type. |
Scripting Properties
There are no Scripting Properties for this element.
Scripting Events
There are no Scripting Events for this element.
Scripting Methods
There are no Scripting Methods for this element.
Scripting Collections
There are no Scripting Collections for this element.
Requirements
Pocket PC: Windows Mobile 5.0 and later
Smartphone: Windows Mobile 5.0 and later
OS Versions: Windows CE 5.01 and later
See Also
Send Feedback on this topic to the authors