1. Home
  2. Computing & Technology
  3. Web Design / HTML

What is an Emphasis Tag?

By Jennifer Kyrnin, About.com

Question: What is an Emphasis Tag?
Answer:

If you learned HTML before you learned XHTML, you probably know about the bold and italics tags. But these tags are not semantic elements because they define how the text should look rather than information about the text. That's why they have been generally replaced by strong (for bold) and emphasis (for italics).

The strong and emphasis elements add interest to your text. Unlike some other XHTML tags, they are meant to look the same on all browsers. Simply surround your text with the opening and closing tags (<em> and </em> for emphasis and <strong> and </strong> for strong emphasis).

You can nest these tags and it doesn't matter which is the external tag. Try testing this block of code in your HTML page:

<em>This text is emphasized</em> most browsers display it as italics.
<strong>This text is strongly emphasized</strong> most browsers display it as bold.
<strong><em>This text is both strong and emphasized</em></strong> usually displayed as bold and italics.
Explore Web Design / HTML
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. What is an Emphasis Tag - Emphasis Tags - Strong Tags, Strong, em>

©2009 About.com, a part of The New York Times Company.

All rights reserved.