HTML <em> Tag

This article aims to talk about Tag Em in HTML. Wishing, it will satisfy the requirements for education.

The HTML <em> tag is used to emphasize text on a web page, typically by making it italicized. The <em> tag is used to indicate emphasis, which could mean highlighting a word or phrase to make it stand out from the surrounding text, or to indicate that a particular word or phrase is important or should be read with emphasis.

In a document, highlight emphasized text as follows:

Example: 

<!DOCTYPE html> <html> <body> <p>Please <em>do</em> it quicklly!</p> <p>Lets<em> try</em> to move on.</p> </body> </html>

Here is an example of the <em> tag with <strong> tag:

Example: 

<!DOCTYPE html> <html> <body> <p>This is an <em>example of <strong>nested emphasis</strong> using the <em>em</em> and <strong>strong</strong> tags</em> in HTML.</p> </body> </html>


Tag Em Usage

Tag Em <em> is utilized to denote emphasized text. The content inside is usually displayed in italics.

Using the verbal stress technique, the words in the <em>tag will be emphasized.


Browser Compatibility

Element
<em>YesYesYesYesYes

Attributes

Global

Similarly, the HTML5 <em> tag is compatible with the Global Attributes.

Event

Moreover, the HTML5 <em> tag is compatible with the Event Attributes.


Predefined CSS

It is common for browsers to display the <em> element with the following default values:

em {
font-style: italic;
}

HTML <em> tag Usage

The HTML <em> tag is used to emphasize text on a web page, typically by making it italicized. Here are some common use cases for the <em> tag:

  • You can use the <em> tag to highlight important words or phrases within a block of text. This can help draw the reader’s attention to key information and make the text more scannable.
  • The <em> tag can also be used to indicate that a particular word or phrase should be read with emphasis or stress. This can be especially useful in situations where tone of voice or inflection may not be apparent in written text.
  • The <em> tag can also be used to add visual interest and variety to a block of text. By italicizing certain words or phrases, you can create a more dynamic and engaging reading experience for the user.
If this article was informative enough to meet your educational desires, then do leave your reaction in order to appreciate our efforts or to suggest us some improvements for the betterment of this site.
We value your feedback.
+1
0
+1
0
+1
0
+1
0
+1
0
+1
0
+1
0

Subscribe To Our Newsletter
Enter your email to receive a weekly round-up of our best posts. Learn more!
icon

Leave a Reply

Your email address will not be published. Required fields are marked *