Search code examples
italic

Are there any differences between this 4 html elements?


Can I clarify that these 4 elements below actually do the same job by rendering the text in italic and there is no difference in using each of them except to differentiate the type of content?

<i>
<em>
<address>
<cite>

Solution

  • You right, these 4 Elements basically renders all text or content as italic, the different off all these element just at the content.

    • The <i> tag defines a part of text in an alternate voice or mood.
    • The <em> tag is used to define emphasized text.
    • The <address> tag defines the contact information for the author/owner of a document or an article.
    • The <cite> tag defines the title of a creative work (e.g. a book, a poem, a song, a movie, a painting, a sculpture, etc.).