JavaScript Tutorial

HTML Phrase Tags

HTML Phrasing is a set of special-purpose tags that define the structural meaning or semantics of text. The following are some commonly used tags:

1. Abbreviation text

The <abbr> tag is used to abbreviate text. Anything placed within this tag will display as abbreviated.

Output:

 

2. Strong text

The <strong> tag is used to display important text on a page. Anything placed within this tag will appear in bold.

Output:

3. Emphasized text

The <em> tag is used to emphasize text. Anything placed within this tag will appear in italics.

Output:

4. Definition text

The <dfn> tag is used to add a definition to any terms. Anything placed within this tag will display as a definition.

Output:

5. Quoting text

This attribute indicates that the enclosed content is quoted from another source. That source URL can be put within the "cite" attribute. Anything we place within <blockquote> tags will be shown as a quote.

Output:

6. Short quotation

This attribute helps to write short quotations. Anything we placed within <q> tag, will come as a quotation with double-quotes.

Output:

7. Code tag

The <code> tag is used to display parts of computer code. Anything placed within this tag will appear in a monospaced font.

Output:

8. Address tag

The <address> tag is used to define contact information. Anything placed within this tag will appear in italics.

Output:

9. Keyboard tag

The <kbd> tag is used to display the section of content that is a user input from a keyboard. Anything placed within this tag will appear as keyboard input.

Output:

Supporting Browsers

Element

“Google Chrome

Microsoft

Firefox

Opera

Safari

Marquee

Yes

Yes

Yes

Yes

Yes

Go back to Previous Course