0% found this document useful (0 votes)
31 views

Differences Between HTML and XHTML

HTML and XHTML support the following standard attributes: attribute class dir id lang style title xml:lang Value classname rtl ltr id language_code Description Specifies the text direction for the content in an element Specifies a unique id for an element.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Differences Between HTML and XHTML

HTML and XHTML support the following standard attributes: attribute class dir id lang style title xml:lang Value classname rtl ltr id language_code Description Specifies the text direction for the content in an element Specifies a unique id for an element.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

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

More information about Standard Attributes.

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

onkeydown onkeypress onkeyup

script script script

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

STF STF STF

More information about Event Attributes.

You might also like