tags:

views:

59

answers:

2

Hi,

The <cite> html tag is supposed to convey more semantic information than just using an <em>. But what is the core difference in usage and purpose of them ?

+12  A: 

<cite> goes around citations. <em> goes around emphasised text. They have totally different semantic meanings to things like search engines and screen readers.

ceejayoz
So does that mean the HTML depends on interpretation of Search Engines... which means that now beyond the issues of Presentation ( solved with CSS ) and Actions ( solved with Javascript ) we need to use tags that have implicit meanings to search engines ?
Icarus
Of course. This is hardly new. It's not just for search engines, either. Computers can't figure out what the semantic meaning of a block of code is on their own, hence semantic tags like `cite`, `em`, `h1`, `blockquote`, etc.
ceejayoz
+1  A: 

It's easy to imagine a situation in which you want to typeset citations differently from emphasized text. This can be done easily using for instance style sheets thanks to the fact that the tags are different.

aioobe
Then, if its about just the CSS, why a tag called cite ? I could have used the same over the em.
Icarus
It's not just about the CSS. You could use CSS to replace `blockquote`, `h1`, and many others if that were the only consideration.
ceejayoz