HTML Behaviors

The HTML template pages implement simple HTML behaviors, primarily to attach function calls to events from focusable elements to trigger highlighting and un-highlighting. Because the behaviors are attached to cascading style sheet classes, every element assigned to the class gets the same function calls for the same events. The advantage of this approach is that it saves typing. It keeps the HTML short and easy to read because you do not need to assign the function calls for the onfocus, onblur, onmouseover, and onclick events in every element.

The function calls are in three HTC behavior files included with the templates. To use these files, you do not need any in-depth knowledge of HTML behaviors. You simply link to them from a cascading style sheet class. The main.css file contains several examples of this technique. For more information, see HTML Behaviors.

See Also

Show: