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

Special Characters

Morning.

Just a quick question which has been bugging me for some time. I am going back to basics on Treehouse and doing some of the first HTML courses. So the question is about Special Characters. If I am using utf-8 do I need to write a & or & the same kind of question applies to double and single quotes as well a host of other characters I can think of.

Thanks in advance

2 Answers

I hope I understood the question xD

Well yes, you have use "Numerical HTML Encoding Of The Unicode Character"

But I saw sometimes you don't have to, you can simply use &.

Just try it out every time and see how it looks in the Browser.

Check:

http://stackoverflow.com/questions/436615/when-should-one-use-html-entities

http://utf8-chartable.de/unicode-utf8-table.pl?utf8=oct&unicodeinhtml=dec&htmlent=1

http://www.w3schools.com/charsets/ref_html_utf8.asp

Hope it was your question xD

Thanks for that Ryno it certainly does shed some light on the situation. Particularly the stackoverflow post.

G

No Problem x) glad I could help ^^