The HTML phrase tags used for special purpose tags, which show the structural meaning of a block of text or semantics of text.
Some of example are give below.
Tag | Tagname |
---|---|
<abbr> |
Abbreviation tag |
<acronym> |
Acronym tag (not supported in HTML5) |
<mark> |
Marked tag |
<strong> |
Strong tag |
<em> |
Emphasized tag |
<dfn> |
Definition tag |
<blockquote> |
Quoting tag |
<q> |
Short quote tag |
<code> |
Code tag |
<kbd> |
Keyboard tag |
<address> |
Address tag |
<abbr>
tag is used to abbreviate a text.
Note :- The title attribute is required to show the meta data of elements.
Example :
<p>This is simple text</p>
<abbr title= "Hypertext Markup language" >This is abbreviate text</abbr>
<mark>
tag is used to highlight the particular text.
The text will show as yellow mark on browser.
Example :
<p>This paragraph tag will <mark>highlight</mark> the text.</p>
This <strong>
tag is used to display the important text of the content. The text written between <strong>
and </strong>
will be shown as important text.
Example :
<p>Normal Text <strong>Important Text</strong> </p>
This <em>
tag is used to emphasize text of the content. The text written between <em>
and </em>
will be shown as italicized.
Example :
<p>This is normal Text <em>this is Emphasized text in the paragraph tag </em> - check the difference.</p>
This <dfn>
tag is used to specify the keyword of the content. The text written between <dfn>
and </dfn>
will be shown as definition element.
Example :
<p><dfn>HTML</dfn> full form is Hyper Text Markup Language.</p>
This <blockquote>
tag is used to enclose content that is quoted from another source and the source URL can be given using the <cite>
attribute. The text written between <cite>
and </cite>
will be shown as text representation of source.
Example :
<blockquote cite="URL source" >
the text wriiten between the blockquote tag is represent as the quote text.
</blockquote>
<cite>-Author</cite>
This <q>
tag is used to define a short quotation. The text written between <q>
and </q>
will be shown as text in double quotes.
Example :
<p>Ram said: <q>God Help Those Who Help Themselves.</q></p>
This <code>
tag is used to show the part of computer code. The text written between <code>
and </code>
will be shown as content in monospaced font.
Example :
<p>First Java program</p>
<p>
<code>class First{ public static void main(String args[]){
System.out.println("Hello World"); }} </code>
</p>
This keyboard tag is used to specify that a section of content is a user input from the keyboard.
The Keyboard tag is represented with <kbd>
tag.
Example :
<p>Use <kbd>Ctrl</kbd> + <kbd>C</kbd> for copy the text which your cursor is selected.</p>
This <address>
tag is used to specify the contact information about the author of the content. The text written between <address>
and </address>
will be displayed in italic font.
Example :
<address> House No. 123 , ABC Colony, City Name
<br>State Name<br>
Country Name
</address>