treehouse : what would you like to learn today?
Web Design Web Development iOS Development

How do I make apostrophes in HTML or css instead of inch marks?

  • My website is displaying the apostrophes as inch marks.. how do I change this?

    http://www.sgw.com/testnve/

  • Because you have coded them that way.

    You need to use unicode characters for the best results but be aware that that your font may be at fault here if it uses the same symbols.

    Double Open Quote

        “ 
    

    Double Close Quote

         ” 
    
  • Thanks! I always thought they were apostrophes not inch marks, until this project. Thanks again!

  • double-open-quote:

    double-close-quote

    If you use a unicode encoding, as Paulie_D suggests (UTF-8 is [almost] always the best choice), you can simply use those characters directly in your text and not worry about it.