HTML Phrase Tags
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.
HTML phrase tags list:
- 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:
Table of Contents
- Emphasis Tag
- Marked Tag
- Strong Tag
- Abbreviation Tag
- Acronym Tag
- Special Terminology / Definition Tag
- Quoting Tag
- Short Quote Tag
- Code Tag
- Keyboard Tag
- Address Tag
Emphasis Tag
Emphasis Tag is used to emphasizing or stressing the word(s) within its opening and closing tags.
Example:
This is a <em>beautiful</em> mall
Output:
Marked Tag
Marked Tag is used for marking any word(s) in yellow as if it has been marked or read.
Example:
Mark these <mark>words</mark>
Output:
Strong Tag
Strong Tag is used for making the appearance of a word strong or bolder for giving more importance.
Example:
These examples are <strong>very important</strong>
Output:
Abbreviation Tag
Abbreviation Tag is used to giving an abbreviation to any word written within the opening and closing tag.
Example:
Do you know the nickname of <abbr title = "Rowan Atkinson">Mr. Bean</abbr>?
Output:
Acronym Tag
Acronym Tag is used to showing that the text within the opening and closing tag is an acronym.
Example:
You are studying <acronym>HTML</acronym>
Output:
Special Terminology / Definition Tag
Special Terminology / Definition Tag is used when HTML developers introduce a special term and display it differently.
Example:
This can be defined as <dfn>scripting</dfn>
Output:
Quoting Tag
Quoting Tag is used in situations when HTML developers want to add a quote to a passage from a different source.
Example:
<blockquote>This is all about India, which is a developing country having the second largest population.</blockquote>
Output:
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.
Example:
This can be defined as <q>scripting</q>
Output:
scripting
Code Tag
Code Tag is used for making text visualization as mono-spaced font, just like most of the programming books display code text.
Example:
This is an example of code <code><?php echo "Hello World!" ?></code>
Output:
Keyboard Tag
Keyboard tags are used to tell readers to enter some text; At that time, you can use this keyboard tag.
Example:
This is an example of <kbd>scripting</kbd>
Output:
Address Tag
Address Tag is used for specifying as well as emphasize that the set of text is an address.
Example:
He is Mr. Bean <address>He lives in Boston.</address>
Output: