HTML em tag
HTML <em> tag defines the stress emphasis of content. The placement of em element changes the meaning of the sentence. But the text actually looks like italic.
<p><em>Hummingbird</em> is a cute bird.</p> <p>Hummingbird are among the <em>smallest</em> birds.</p></>
Hummingbird is a cute bird.
Hummingbird are among the smallest birds.
Tag UsesSpecific uses of <em> tag
The purpose of em element is not to italic the text but it has special meaning. For this purpose i is present.
The position of em element in a text changes the meaning of line by emphasising stress on a term.
The placement of <em> in the following paragraph leaves us with a question whether humingbird or other kind of bird is the smallest bird.
<p><em>Hummingbird</em> is the smallest bird.</p>
The following example leaves us with a question whether humingbird is small or not.
<p>Hummingbird is the <em>smallest</em> bird.</p>
The following example leaves us with a question whether it is a bird or animal.
<p>Hummingbird is the smallest <em>bird<em>.</p>
Both starting and ending tags are necessary for the em element.
All the global attributes are applicable on the em element.
Was this article helpful?