HTML phrase tags are unique purpose tags designed to use indefinite cases, even though they're implemented in the same manner as other tags are used, which you might have seen in previous chapters. So now, let's dig deep into each of its different types of phrase tags. You might have briefly read about these in the earlier chapters, but not as a subcategory of phrase tags.
- Emphasized Tag
- Marked Tag
- Strong Tag
- Abbreviation Tag
- Acronym Tag
- Special Terminology / Definition Tag
- Quoting Tag
- Short Quote Tag
- Code Tag
- Keyboard Tag
- Address Tag
Let's see what each of these does:
Emphasis Tag
Emphasis Tag emphasizes or stresses the texts within its opening and closing tags.
This is a <em>beautiful</em> mall.
This is a beautiful mall.
Marked Tag
The mark tag defines text with a highlighted yellow background that should be marked or highlighted.
Mark these <mark>words</mark>.
Mark these words.
Strong Tag
The mark tag defines the appearance of the text as solid or bold, which should be more significant.
These examples are <strong>very important</strong>.
These examples are very important.
Abbreviation Tag
Abbreviation Tag is used to give an abbreviation to any word written within the opening and closing tag.
Do you know the nickname of <abbr title = "Rowan Atkinson">Mr. Bean</abbr>?
Do you know the nickname of Mr. Bean?
Acronym Tag
Acronym Tag is used to show that the text within the opening and closing tag is an acronym. This tag is Not Supported in HTML5.
You are studying <acronym>HTML</acronym>.
You are studying HTML.
Special Terminology / Definition Tag
Special Terminology/Definition Tag is used when HTML developers introduce a special term and display it differently.
This can be defined as <dfn>scripting</dfn>.
This can be defined as scripting.
Quoting Tag
Quoting Tag is used when HTML developers want to add a quote to a passage from a different source.
<blockquote>This is all about India, which is a developing country having the second largest population.</blockquote>
This is all about India, which is a developing country having the second largest population.
Short Quote Tag
Short Quote Tag is used for adding a double quote to your statement on your web page.
This can be defined as <q>scripting</q>.
This can be defined asscripting.
Code Tag
Code Tag is used for making text visualization as mono-spaced font, just like most of the programming books display code text.
This is an example of code <code><?php echo "Hello World!" ?></code>
This is an example of code <?php echo "Hello World!" ?>
Keyboard Tag
The HTML <kbd>
tag defines
text as input from a keyboard such as the Ctrl key,
Enter, etc. Browsers render text within <kbd>
tags in monospace font.
<p>This is an example of <kbd>scripting</kbd>.</p> <p>Press <kbd>ctrl+c</kbd> to copy.</p>
This is an example of scripting.
Press ctrl+c to copy.
Address Tag
The address tag is used to specify and emphasize that a set of text is an address.
He is Mr. Bean <address>He lives in Boston.</address>
He is Mr. Bean
He lives in Boston.