Select Language:

EM / STRONG / DFN / CODE / SAMP / KBD / VAR / CITE

about EM / STRONG / DFN / CODE / SAMP / KBD / VAR / CITE :
  • 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 :

  1. class :Specifies a classname for an element
  2. dir : Specifies the text direction for the content in an element
  3. id : Specifies a unique id for an element
  4. lang : Specifies a language code for the content in an element
  5. style : Specifies an inline style for an element
  6. title: Specifies extra information about an element
  7. onclick : Script to be run on a mouse click
  8. ondblclick : Script to be run on a mouse double-click
  9. onmousedown : Script to be run when mouse button is pressed
  10. onmousemove : Script to be run when mouse pointer moves
  11. onmouseout : Script to be run when mouse pointer moves out of an element
  12. onmouseover : Script to be run when mouse pointer moves over an element
  13. onmouseup : Script to be run when mouse button is released
  14. onkeydown : Script to be run when a key is pressed
  15. onkeypress : Script to be run when a key is pressed and released
  16. 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: