How to use Emphasized formatting in HTML?


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

The <em> tag is used to separate the text from the rest text of the content. The content inside em tag is typically displayed in italic. You can change this behavior with CSS property.

Syntax

Following is the syntax for <em> tag.

<em>The text…</em>

Example

Following is the example program for <em> tag.

<!DOCTYPE html> <html> <body> <em>Tutorials point</em> </body> </html>

Example

In the following example below we used <em> tag used on a particular text inside the <p> tag to add a semantic importance.

<!DOCTYPE html> <html> <head> <title>HTML em tag</title> </head> <body> <h1>Tutorial</h1> <p>Learn <em>Website Development</em> with ease.</p> </body> </html>

Example

We can use this <em> tag inside the HTML elements. Following is the example program for <em> tag used inside the <p> tag.

<!DOCTYPE html> <html> <head> </head> <body> <p>DLF stands for<em>Delhi Land and Finance.</em> <br>Delhi Land and Finance is one of the largest commercial real estate developer in India.</p> </body> </html>

Updated on: 22-Nov-2023

783 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements