- em / strong / dfn / code / samp / kbd / var / cite element are all phrase tags. They are not deprecated, but it is possible to achieve richer effect with CSS.
- em : renders as emphasized text
- strong : renders as strong emphasized text
- dfn : defines a definition term
- code : defines computer code text
- samp : defines sample computer code
- kbd : defines keyboard text
- var : defines a variable part of a text
- cite : defines a citation
EM / STRONG / DFN / CODE / SAMP / KBD / VAR / CITE attrib :
- class :Specifies a classname for an element
- dir : Specifies the text direction for the content in an element
- id : Specifies a unique id for an element
- lang : Specifies a language code for the content in an element
- style : Specifies an inline style for an element
- title: Specifies extra information about an element
- onclick : Script to be run on a mouse click
- ondblclick : Script to be run on a mouse double-click
- onmousedown : Script to be run when mouse button is pressed
- onmousemove : Script to be run when mouse pointer moves
- onmouseout : Script to be run when mouse pointer moves out of an element
- onmouseover : Script to be run when mouse pointer moves over an element
- onmouseup : Script to be run when mouse button is released
- onkeydown : Script to be run when a key is pressed
- onkeypress : Script to be run when a key is pressed and released
- onkeyup : Script to be run when a key is released
EM / STRONG / DFN / CODE / SAMP / KBD / VAR / CITE example :
| <em>Emphasized text</em> <strong>Strong text</strong> <dfn>Definition term</dfn> <code>Computer code text</code> <samp>Sample computer code text</samp> <kbd>Keyboard text</kbd> <var>Variable</var> <cite>Citation</cite> |
origin by : w3schools.com


0 comments:
Post a Comment