Sunday, January 19, 2014

HTML Phrase Tags

<em> <strong> <dfn> <code> <samp> <kbd> <var> <cite>. 

<em>Renders as emphasized text
<strong>Renders as strong emphasized text
<dfn>Defines a definition term
<code>Defines computer code text
<kbd>Defines keyboard text
<var>Defines a variable
<tt>Defines a teletype
<cite>Defines a citation


Code:

<html>
<body>
<em>This is an example for emphasized</em>
<strong>This is an example for strong</strong>
<dfn>This is an example for definition</dfn>
<code>some code..some code... </code>
<kbd>This is an example for Keyboard text</kbd>
<tt>This is an example for teletype</tt>
<cite>Citation</cite>
</body>
</html>


Result:

This is emphasized
This is an example for strong
This is an example for definition
some code..some code... 
This is an example for Keyboard text
This is an example for var
This is an example for teletype
Citation