Friday, December 1, 2023
HomeVideo EditingHTML Ingredient: em

HTML Ingredient: em


Instance

Syntax

1
<p>Turtles don’t make the best pets.</p>
2

3
<p>Turtles <em>don’t</em> make the best pets.</p>
4

5
<p>Turtles don’t make the <em>best</em> pets.</p>
6

7
<p>Turtles <em>don’t make the <em>best</em> pets</em>.</p>

Outcome

Browser Help

The <em> tag is supported in all fashionable browsers. Learn extra on caniuse.com.

Attributes

The <em> tag helps World Attributes in HTML. World Attributes are frequent to all HTML components and can be utilized on all of them (although they could not have a lot of an impact on a few of them).

Content material

An <em> tag accepts phrasing content material.

What’s the distinction between <i> and <em>?

Visually talking each the i (“italic”) and em tags produce the identical end result. The distinction is within the semantics. Listed here are a few examples to assist illustrate:

  • <em>: “We had to decide proper then and there”. When studying the textual content the pronunciation the phrases with an emphasis, utilizing verbal stress.
  • <i>: “The Niña, the Pinta, and the Santa Maria sailed into the ocean.” Right here, there isn’t any added emphasis or significance on the three ships talked about within the passage. It’s merely indicated that the item in query isn’t a human named Niña, Pinta, or Santa Maria  however ships named Niña, Pinta, and Santa Maria.

Study Extra

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments