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

  1. Emphasis Tag
  2. Marked Tag
  3. Strong Tag
  4. Abbreviation Tag
  5. Acronym Tag
  6. Special Terminology / Definition Tag
  7. Quoting Tag
  8. Short Quote Tag
  9. Code Tag
  10. Keyboard Tag
  11. 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:

This is a beautiful mall

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:

Mark these words

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:

These examples are very important

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:

Do you know the nickname of Mr. Bean?

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:

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.

Example:

This can be defined as <dfn>scripting</dfn>

Output:

This can be defined as scripting

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:

This can be defined as 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:

This is an example of code

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:

This is an example of scripting

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:

He is Mr. Bean
He lives in Boston.

Leave a Reply

Your email address will not be published.