1 of 11

� HTML – PHRASE TAGS ��

The phrase tags have been designed for specific purposes, though they are displayed in a similar way as other basic tags like <b>, <i>, <pre>, and <tt>.

Amity School of Engineering & Technology

2 of 11

�Emphasized Text

Anything that appears within <em>...</em> element is displayed as emphasized text.

  • <!DOCTYPE html>
  • <html>
  • <head>
  • <title>Emphasized Text Example</title>
  • </head>
  • <body>
  • <p>The following word uses a <em>emphasized</em> typeface.</p>
  • </body>
  • </html>

This will produce the following result:

The following word uses an emphasized typeface.

Amity School of Engineering & Technology

3 of 11

�Marked Text �

Anything that appears with-in <mark>...</mark> element, is displayed as marked with yellow ink.

  • <!DOCTYPE html>
  • <html>
  • <head>
  • <title>Marked Text Example</title>
  • </head>
  • <body>
  • <p>The following word has been <mark>marked</mark> with yellow</p>
  • </body>
  • </html>

The following word has been marked with yellow.

Amity School of Engineering & Technology

4 of 11

Strong Text

Anything that appears within <strong>...</strong> element is displayed as important text.

  • <!DOCTYPE html>
  • <html>
  • <head>
  • <title>Strong Text Example</title>
  • </head>
  • <body>
  • <p>The following word uses a <strong>strong</strong> typeface.</p>
  • </body>
  • </html>

This will produce the following result:

The following word uses a strong typeface.

Amity School of Engineering & Technology

5 of 11

�Text Abbreviation �

You can abbreviate a text by putting it inside opening <abbr> and closing </abbr> tags. If present, the title attribute must contain this full description and nothing else.

  • <!DOCTYPE html>
  • <html>
  • <head>
  • <title>Text Abbreviation</title>
  • </head>
  • <body>
  • <p>My best friend's name is <abbr title="Abhishek">Abhy</abbr>.</p>
  • </body>
  • </html>

This will produce the following result:

My best friend's name is Abhy.

Amity School of Engineering & Technology

6 of 11

�Text Direction �

The <bdo>...</bdo> element stands for Bi-Directional Override and it is used to override the current text direction.

  • rtl: The text direction from right to left (reverse the text).
  • ltr: The text direction from left to right.

  • <!DOCTYPE html>
  • <html>
  • <head>
  • <title>Text Direction Example</title>
  • </head>
  • <body>
  • <p>This text will go left to right.</p>
  • <p><bdo dir="rtl">This text will go right to left.</bdo></p>
  • </body>
  • </html

Amity School of Engineering & Technology

7 of 11

�Special Terms

The <dfn>...</dfn> element (or HTML Definition Element) allows you to specify that you are introducing a special term. It's usage is similar to italic words in the midst of a paragraph.

Typically, you would use the <dfn> element the first time you introduce a key term. Most recent browsers render the content of a <dfn> element in an italic font.

  • <!DOCTYPE html>
  • <html>
  • <head>
  • <title>Special Terms Example</title>
  • </head>
  • <body>
  • <p>The following word is a <dfn>special</dfn> term.</p>
  • </body>
  • </html>

Amity School of Engineering & Technology

8 of 11

�Quoting Text

When you want to quote a passage from another source, you should put it in between<blockquote>...</blockquote> tags.

Text inside a <blockquote> element is usually indented from the left and right edges of the surrounding text, and sometimes uses an italicized font.

  • <html>
  • <body>
  • <h1>AUMP</h1>
  • <h2><blockquote> Tag</h2>
  • <!--blockquote Tag starts here -->

  • <p align="middle">Yes this is the example for blockquote</p>
  • <blockquote cite="https:www.amityuniversity.in/">
  • <p>
  • HTML stands for HyperText Markup Language. It
  • is used to design web pages using a markup language.
  • HTML is the combination of Hypertext and Markup language.
  • Hypertext defines the link between the web pages. A
  • markup language is used to define the text document within
  • tag which defines the structure of web pages.
  • </p>
  • </blockquote>
  • <!--blockquote Tag ends here -->
  • </body>
  • </html>

Amity School of Engineering & Technology

9 of 11

�Short Quotations

The <q>...</q> element is used when you want to add a double quote within a sentence.

  • <!DOCTYPE html>
  • <html>
  • <head>
  • <title>Double Quote Example</title>
  • </head>
  • <body>
  • <p>Amit is in Spain, <q>I think I am wrong</q>.</p>
  • </body>
  • </html>

Amity School of Engineering & Technology

10 of 11

Keyboard Text

When you are talking about computers, if you want to tell a reader to enter some text, you can use the <kbd>...</kbd> element to indicate what should be typed in .

  • <!DOCTYPE html>
  • <html>
  • <head>
  • <title>Keyboard Text Example</title>
  • </head>
  • <body>
  • <p>Regular text. <kbd>This is inside kbd element</kbd> Regular text.</p>
  • <p>Three keys you really need to familiarize yourself with are <kbd>CTRL</kbd>, <kbd>ALT</kbd> and <kbd>DEL</kbd>.</p>
  • </body>
  • </html>
  • The <kbd> element is used to identify text that represents user keyboard input. Text surrounded by <kbd> tags is typically displayed in the browser's default monospace font.��

Amity School of Engineering & Technology

11 of 11

Thanks

Amity School of Engineering & Technology