HTML Components (HTCs) are a legacy technology[1] used to implement components inscript as DynamicHTML (DHTML) "behaviors"[2] in theMicrosoftInternet Explorerweb browser. Such files typically use an .htcextension and the "text/x-component"MIME type.[3]
An HTC is typically anHTML file (withJScript /VBScript) and a set of elements that define the component. This helps to organize behavior encapsulated in script modules that can be attached to parts of aWebpageDOM.
<body><ul><listyle="behavior:url(hilite.htc)">Example</li></ul></body>
In this example, theli element is given the behavior defined by "hilite.htc" (a file that containsJScript code defining highlight/lowlight actions on mouse over). The same hilite.htc can then be given to any element in theHTML page - thus encapsulating the behavior defined by this file.