B.9. behavior

An Internet Explorer only property, behavior lets you assign packaged Dynamic HTML code to HTML elements in bulk. For a full description of the Behaviors feature in Internet Explorer, refer to the MSDN Web site.

Inherited: No

B.9.1. Value

A URL (specified with the CSS url() wrapper) or an object ID.

Initial value: none

B.9.2. Compatibility

CSS Version: n/a

Attached behaviors are supported by Internet Explorer 5 for Windows or later. Other behavior types are supported by Internet Explorer 5.5 for Windows or later.

B.9.3. Example

The following style rule applies the behavior defined in the draganddrop.htc file to any element of class draganddrop:

.draganddrop {
  behavior: url(draganddrop.htc);
}

Get HTML Utopia: Designing Without Tables Using CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.