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 trialChristopher Sea
3,726 Points%20 vs.
Is there a best practice rule for using %20 rather than a non-breaking space?
1 Answer
Steven Parker
231,248 PointsConsider that %20
is just an ordinary space, expressed with URL encoding. It's not an HTML character entity code.
But
is a character entity code, and for "non-breaking space", which is different from a normal space in that it is treated for text-flow purposes as if it was a printing character.
So the choice between these should be easy as they have different practical uses, and are intended for different situations.