HTML Phrase Tags

How to make the text structured using phrase elements?

Explanation

Phrase elements:
Phrase elements are used to make the text much richer than they look in common. There are many phrase elements for formatting the text we need. We can use phrase elements like <em> <strong> <dfn> <code> <samp> <kbd> <var> <cite>. Some of important tags among those phrase elements are described below.
<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

Example 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


Ask Questions

Ask Question