views:

56

answers:

3

In my ASP.NET application, I was trying to add few white spaces between two text boxes by typing space bar. The equivalent HTML source was   instead of  . So I just wanted to check: is this the new replacement for white space? If yes, any idea why they changed?

+5  A: 

  is the character entity reference.   is the numeric entity reference. They are the same except for the fact that the latter does not need another lookup table to find its actual value.

Ignacio Vazquez-Abrams
Thanks. Any link you can provide for further reading?
Antoops
http://www.w3.org/TR/html4/charset.html#h-5.3
Ignacio Vazquez-Abrams
The other difference is that numeric references don't require a DTD.
dan04
+2  A: 

Those do both mean non-breaking space, yes.   is another synonym, in hex.

Alex JL
+2  A: 
josh3736