DEV Community

Cover image for 5 HTML tags that make the text italic
Beginner Developer
Beginner Developer

Posted on • Originally published at beginners-developer.blogspot.com

7 3

5 HTML tags that make the text italic

As I was reading the documentation of HTML, I saw the var tag. Initially, I thought it was related to variables. However, I had seen that it was making the text Italic. So I asked myself, how many HTML tags make text Italic.

I began researching how many HTML tags make the text italic and found 5 tags that do so.

<i> tag

It is a common and well-known tag.
Display style- Inline
<i> elements are used to differentiate words from the surrounding text by styling italicized text without adding any emphasis to italicized text.

<em> tag

Display Style - Inline.
The <em> element is used to indicate text that should receive more emphasis than the surrounding text.

<cite> tag

Display style - Inline
Use the cite element to identify the source of a quotation or creative work, rather than the author or creator.

<dfn> tag

Display style- Inline
When a term is enclosed in a <dfn> tag, browsers and web crawlers will understand that nearby text contains a definition of the term.

<var> tag

Display style - Inline
Most browsers display text marked with tags in italics. This element indicates a variable in a mathematical equation or computer program.

My Blog:- Beginner Developer Blog
Website:- https://ejaazrkhan.github.io/portfolio

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (2)

Collapse
 
prakh_r profile image
Prakhar Yadav • Edited

This is nice.
I wonder how screen readers announce them

Collapse
 
beginnerdeveloper profile image
Beginner Developer

🤔😅

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay