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 read about these in brief in the previous 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 is used to emphasizing or stressing the word(s) within its opening and closing tags.
This is a <em>beautiful</em> mall
This is a beautiful mall
Marked Tag is used for marking any word(s) in yellow as if it has been marked or read.
Mark these <mark>words</mark>
Mark these words
Strong Tag is used for making the appearance of a word strong or bolder for giving more importance.
These examples are <strong>very important</strong>
These examples are very important
Abbreviation Tag is used to giving 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 is used to showing that the text within the opening and closing tag is an acronym.
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 want to display it differently.
This can be defined as <dfn>scripting</dfn>
This can be defined as scripting
Quoting Tag is used in situations 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 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 is used to telling any reader for entering some text; that time, you can use this keyboard tag.
This is an example of <kbd>scripting</kbd>
This is an example of scripting
Address Tag is used for specifying as well as emphasize that the set of text is an address.
He is Mr. Bean <address>He lives in Boston.</address>
He is Mr. BeanHe lives in Boston.