RE: reference to undeclared general entity nbsp



In your question you mentioned that you were using HTML5. Based on this
error, I'm assuming that you're doing this with an XML based encoding. (If
this is not the case, please send us a link to the actual page in question
or the full markup snippet.)


Named character entities are a bit different between HTML and XML.


You can see here that non-breaking spaces aren't defined in XML (and thus


Never the less, you can always use its numeric representation ( ) in
XML if you want.


Finally, in many cases you're better off using white-space: nowrap; in CSS
to achieve the same visual style without having to add extra markup.




Tatham Oddie

au mob: +61 414 275 989, us cell: +1 213 280 9140, skype: tathamoddie


From: [] On
Behalf Of Pierre Rudloff
Sent: Wednesday, 19 May 2010 8:36 PM
Subject: reference to undeclared general entity nbsp


When checking a HTML5 page via direct input, I got this error :
"reference to undeclared general entity nbsp"
I don't understand, is   not a valid way to insert non-breaking spaces

Pierre Rudloff

NOTE: Whenever possible, give the address of the document you were checking.

Received on Wednesday, 19 May 2010 23:25:41 UTC