CSS - How to display text in italics

CSS

  .citation {
    font-style: italic;
  }
 

HTML

  <html>
      <p>Eloquence, when at its highest pitch, leaves little room for reason or reflection.</p>
      <span class="citation">David Hume</span>
  </html>
 

Output

Eloquence, when at its highest pitch, leaves little room for reason or reflection.

David Hume

Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath