HTML Components (HTCs) are a legacy technology used to implement components in script as Dynamic HTML (DHTML) "behaviors" in the Microsoft Internet Explorer web browser. Such files typically use an .htc extension and the "text/x-component" MIME type.
An HTC is typically an HTML file (with JScript / VBScript) and a set of elements that define the component. This helps to organize behavior encapsulated script modules that can be attached to parts of a Webpage DOM.
<body> <ul> <li style="behavior:url(hilite.htc)">Foo Foo Foo</li> </ul> </body>
In this example, the li element is given the behavior defined by "hilite.htc" (a file that contains JScript code defining highlight/lowlight actions on mouse over). The same hilite.htc can then be given to any element in the HTML page - thus encapsulating the behavior defined by this file.
- declared obsolete by Microsoft as of MSIE 10 "This topic documents a feature of Binary Behaviors, which are obsolete as of Internet Explorer 10"
- Introduction to DHTML Behaviors
- MIME Types in IIS
- Using HTML Components to Implement DHTML Behaviors in Script
- W3C Note on HTML Components
- Using cross-browser HTML Components
|This article related to a type of software is a stub. You can help Wikipedia by expanding it.|