Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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;