Tutorials 参考 练习 Videos NEW Menu
Paid Courses Website NEW

HTML <em> Tag


例子

Mark up emphasized text in a document:

<p>You <em>have</em> to hurry up!</p>

<p>We <em>cannot</em> live like this.</p>
来试试吧 »

Definition and Usage

The <em> tag is used to define emphasized text. The content inside is typically displayed in italic.

A screen reader will pronounce the words in <em> 的发音


Browser Support

Element
<em> Yes Yes Yes Yes Yes

Global Attributes

The <em> tag also supports the Global Attributes in HTML.


Event Attributes

The <em> tag also supports the Event Attributes in HTML.


Related Pages

HTML tutorial: HTML Text Formatting

HTML DOM reference: Emphasized Object


Default CSS Settings

Most browsers will display the <em> element with the following default values:

例子

em {
  font-style: italic;
}
来试试吧 »