Главная -> Непослушный
Join Stack Overflow to learn, share knowledge, and build your career. One is non-breaking space and the other is a regular space. The regular space has the character code 32, while the non-breaking space has the character code For example when you display numbers with space as thousands separator: If you display currency and there is a руский nbsp nbsp nbsp секс nbsp nbsp студенов between the amount and the currency: In addition to the other answers here, non-breaking spaces will not be "collapsed" like regular spaces will.
So the following will not be rendered with borders:. Multiple normal white space characters space, tabulator and line break are treated as one single white space character:. For all HTML elements except PREsequences of white space separate "words" we use the term "word" here to mean "sequences of non-white space characters". When formatting text, user agents should identify these words and lay them out according to the conventions of the particular written language script and target medium.
руский nbsp nbsp nbsp секс nbsp nbsp студенов There are a lot of different types of spaces, such as thin space, em space, non breaking space Jon Tan has made a writeup of the most common ones at his blog.
Email Sign Up or sign in with Google.
Both of them mean space, руский nbsp nbsp nbsp секс nbsp nbsp студенов is there any difference? SilentGhost k 43 Furthermore as Svend points out in his comment, non-breaking spaces are not collapsed. Drives me insane when I see people doing that. Use CSS padding or margin. Just the kind of guru I always wanted to be Guffa k 70 Good examples of nbsp use.
OGHaza 4, 6 17 Re your last sentence: Not an answer as much as an examples. Vaidas 8 Christopher Kelly 1 9 As already mentioned, you will not receive a line руский nbsp nbsp nbsp секс nbsp nbsp студенов where there is a "no-break space". So the following will not be rendered with borders: Pete 8, 6 40 Multiple normal white space characters space, tabulator and line break are treated as one single white space character: So foo bar is displayed as foo bar But no-break space is always displayed.
Gumbo k 84 Jacob R 8, 4 24 You can see a working example here: Can you please explain me, why downvote this answer? I have upvoted it. However you are pointing out something visual which is useful. Zoidberg 8, 2 22 Zoidberg is right, example: IProblemFactory 6, 5 35 CodingBarfield 2, 1 19 Sign up or log in Sign up using Google.