Attribute Description
onblur=script Specifies a script to be run when the element loses focus
onchange=script Specifies a script to be run when the element changes
onfocus=script Specifies a script to be run when the element is focused
Not valid in these elements: base, bdo, br, frame, frameset, head, html, iframe, meta,
param, script, style, and title.
THE ESSENTIAL GUIDE TO CSS AND HTML WEB DESIGN
402
Attribute Description
onreset=script Specifies a script to be run when a form is reset
onselect=script Specifies a script to be run when the element is selected
onsubmit=script Specifies a script to be run when a form is submitted
Window events
These events are valid only in the following elements: body and frameset.
Attribute Description
onload=script Specifies a script to be run when the document loads
onunload=script Specifies a script to be run when the document unloads
XHTML elements and attributes
The following pages list XHTML elements, associated attributes, and descriptions for all.
Unless otherwise stated, assume an element is allowed in pages with XHTML Strict, XHTML
Transitional, or XHTML Frameset DTDs. Do not use elements or attributes with DTDs that
don??™t allow them. For instance, the target attribute cannot be used with XHTML Strict??”
doing so renders the page invalid.
Some elements are shown with a trailing forward slash. These are empty tags. Instead of
having a start tag, content, and an end tag, these elements have a combined form.
Pages:
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511