What is the practical difference between <em> and <cite> tags in html? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

What is the practical difference between <em> and <cite> tags in html?

7th May 2018, 7:49 AM
Yash Saxena
Yash Saxena - avatar
2 Réponses
+ 8
The <em> tag is a phrase tag. It renders as emphasized text <cite> tag defines the title of a work (e.g. a book, asong, a movie, etc.)
7th May 2018, 7:59 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
They can be targeted differently by css formatting. Also a lot of HTML tags are semantic, so although there may be no difference visually, a browser or search engine may treat it different (e.g. tags to denote acronyms). A browser for those with visual impairment may also read this portion differently or indicate it's a quote, rather than emphasized text
7th May 2018, 9:44 AM
Dan Walker
Dan Walker - avatar