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 trialAlicja Fratczak
1,017 Pointsquotation 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
1,017 PointsI'm using text edit on mac, not pasting from another program.
Rick Gessner
43 PointsLikely that you're pasting the code in from a non-text editor like word. The character entities for quotes are shown below:
“ PUT YOUR MESSAGE HERE ”
Alicja Fratczak
1,017 PointsAlicja Fratczak
1,017 PointsUpdate: 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 :)