HTML em tag
Example
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>
<p>We <em>cannot</em> live like this.</p>
You have to hurry up!
We cannot live like this.
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>
with an emphasis, using verbal stress.
Global Attributes
The <em>
tag also supports the Global Attributes in HTML.
Event Attributes
The <em>
tag also supports the Event Attributes in HTML.
Default CSS Settings
Most browsers will display the <em>
element with the following default values:
Example
em {
font-style: italic;
}
font-style: italic;
}
Comments
Post a Comment