
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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>
Advertisements