Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Links Anchors

Alicja Fratczak
Alicja Fratczak
1,017 Points

quotation marks and apostrophe symbols not displaying properly

Whenever I use quotation marks or apostrophe symbols in html code, it messes up my webpage. For example, when I type <p id=“some_text”>The anchor takes us here.</p> I get: ”some_text” displayed on my webpage, and 'page not found' error. This happens every time, even in the name of my page title. Am I doing something wrong?

2 Answers

Alicja Fratczak
Alicja Fratczak
1,017 Points

I'm using text edit on mac, not pasting from another program.

Alicja Fratczak
Alicja Fratczak
1,017 Points

Update: I figured out what the issue was. Turn's out the default Mac and TextEdit settings have 'smart quotes' turned on, which automatically slants/formats quotation marks when writing. I turned the feature off and everything works again :)

Rick Gessner
Rick Gessner
43 Points

Likely that you're pasting the code in from a non-text editor like word. The character entities for quotes are shown below:

&ldquo;   PUT YOUR MESSAGE HERE   &rdquo;