Jump to content

HTML Components

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 2a02:908:1b1:b900:41fd:2c70:597f:98ae (talk) at 19:53, 12 May 2016. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

HTML Components (HTCs) are a legacy technology[1] used to implement components in script as Dynamic HTML (DHTML) "behaviors"[2] in the Microsoft Internet Explorer web browser. Such files typically use an .htc extension and the "text/x-component" MIME type.[3]

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.

Example

<body>
<ul>
  <li style="behavior:url(hilite.htc)">Foo Foo Foo</li>
</ul>
</body>

In this example, you can see Herr Achhammi did not unsterstand 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.

References

  https://www.bing.com/images/search?q=gronks+freundin&FORM=HDRSC2