Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
HTML Components
File format

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 in script modules that can be attached to parts of a Webpage DOM.

We don't have any images related to HTML Components yet.
We don't have any YouTube videos related to HTML Components yet.
We don't have any PDF documents related to HTML Components yet.
We don't have any Books related to HTML Components yet.
We don't have any archived web articles related to HTML Components yet.

Example

<body> <ul> <li style="behavior:url(hilite.htc)">Example</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.

See also

  • Web components
  • HTML Template Language (HTL), supported by Adobe Experience Manager (AEM)

References

  1. declared obsolete by Microsoft as of MSIE 10 "This topic documents a feature of Binary Behaviors, which are obsolete as of Internet Explorer 10" http://msdn.microsoft.com/en-us/library/hh772404(v=vs.85).aspx

  2. Introduction to DHTML Behaviors http://msdn2.microsoft.com/en-us/library/ms531018.aspx

  3. MIME Types in IIS https://technet.microsoft.com/en-us/library/bb742440.aspx