Differences Between HTML and XHTML
Differences Between HTML and XHTML
NONE
Standard Attributes
DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset. The <tt>, <i>, <b>, <big>, and <small> tags support the following standard attributes: Attribute class dir id lang style title xml:lang Value classname rtl ltr id language_code style_definition text language_code Description Specifies a classname for an element Specifies the text direction for the content in an element Specifies a unique id for an element Specifies a language code for the content in an element Specifies an inline style for an element Specifies extra information about an element Specifies a language code for the content in an element, in XHTML documents DTD STF STF STF STF STF STF STF
Event Attributes
The <tt>, <i>, <b>, <big>, and <small> tags support the following event attributes: Attribute onclick ondblclick onmousedown onmousemove onmouseout onmouseover onmouseup Value script script script script script script script Description DTD Script to be run on a mouse click STF Script to be run on a mouse double-click STF Script to be run when mouse button is pressed STF Script to be run when mouse pointer moves STF Script to be run when mouse pointer moves out of an STF element Script to be run when mouse pointer moves over an STF element Script to be run when mouse button is released STF
Script to be run when a key is pressed Script to be run when a key is pressed and released Script to be run when a key is released