![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to make text italic in HTML?
To make text italic in HTML, use the <i>…</i> tag or <em>…</em> tag. Both the tags have the same functioning, but <em> tag is a phrase tag, which renders as emphasized text.
Just keep in mind that you can get the same result in HTML with CSS font-style property.
Example
You can try to run the following code to make text italic in HTML using <em>…</em> tag
<!DOCTYPE html> <html> <head> <title>HTML italic text</title> </head> <body> <h1>Products</h1> <p> Our products: <em>Online HTML Editor</em> and <em>Online Image Editor</em>. </p> </body> </html>
Example
You can try to run the code make text italic in HTML using the font-style property
<!DOCTYPE html> <html> <head> <title>HTML italic text</title> </head> <body> <h1>Our Products</h1> <p style="font-style: italic;">Learning website</p> </body> </html>
Advertisements