Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between <cite>, <em>, and <i> tags of HTML?

Tags:

html

css

What is the difference between <cite>, <em>, and <i> tags of HTML ?

All render same default style in most of browsers.

Is there any meaning behind these tags ?

Can anyone give example about where these tags can be used ?

like image 504
Santosh S Avatar asked Dec 27 '10 07:12

Santosh S


People also ask

What is the difference between em tag and I tag in HTML?

By default, the visual result is the same. The main difference between these two tag is that the <em> tag semantically emphasizes on the important word or section of words while <i> tag is just offset text conventionally styled in italic to show alternative mood or voice.

What is the difference between cite and I?

<cite> is used when the content is some kind of articles. <em> stands for "emphasis" is used to insists the meaning. <i> stands for "italic", making the text italic.

What is the difference between em and em in HTML?

<em>: The Emphasis element. The <em> HTML element marks text that has stress emphasis. The <em> element can be nested, with each level of nesting indicating a greater degree of emphasis.

What is the difference between em and italic?

Definition and Usage 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.


1 Answers

<cite> is used for citations (either of resources or of their authors). They are commonly used together with <q> or <blockquote> (both used for quotations).

<em> means text emphasis (in a paragraph or some other text content).

In legacy HTML, <i> used to mean italicized text. In HTML5, <i> has been repurposed into something else entirely. (Note that this was not true at the time this answer was originally written.)

The only thing these three elements have in common is that all three of them are typically set in italics. In other words, the fact that they all have the same default style is mere coincidence.

like image 87
BoltClock Avatar answered Oct 25 '22 07:10

BoltClock