<em> <strong> <dfn> <code> <samp> <kbd> <var> Tags in HTML 5

In this article I am going to tell about <em> <strong> <dfn> <code> <samp> <kbd> <var> Tags in HTML 5.
  • 2150
Definition

HTML5 <em> <strong> <dfn> <code> <samp> <kbd> <var> Tags are all phrase tags. They are not deprecated, but it is possible to achieve richer effect with CSS.

Example
 

<html>
<head>
       <title></title>
</head>
<body>
       <em>Emphasized text</em><br>
       <strong>Strong text</strong><br>
       <dfn>Definition term</dfn><br>
       <code>Computer code</code><br>
       <samp>Sample output from computer program</samp><br>
       <kbd>Keyboard input</kbd><br>
       <var>Variable</var>
</body>
</html>

Output

var.JPG

You can read more about HTML 5 Tags here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2019 DotNetHeaven. All rights reserved.