Horje
HTML <em> Tag

HTML <em> Tag Mark up emphasized text in a document:

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.


How to create HTML <em> Tag

HTML <em> Tag Mark up emphasized text in a document:
index.html
Example: HTML
<p>You <em>have</em> to hurry up!</p>

<p>We <em>cannot</em> live like this.</p>

Output should be:

How to create HTML <em> Tag

The following browser are supported

The following browser are supported

How to set Default CSS Settings for HTML <em> Tag

Most browsers will display the <em> element with the following default values
index.html
Example: HTML
<style>
em { 
  font-style: italic;
}
</style>

Output should be:

How to set Default CSS Settings for HTML <em> Tag





Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin


Read Article
https://horje.com/learn/1434/reference