DEV Community

& nbsp ; stands for "non-breaking space" 🤯

Ben Halpern on January 14, 2020

// Detect dark theme var iframe = document.getElementById('tweet-1217167312001871876-183'); if (document.body.className.includes('dark-the...
Collapse
 
ryansmith profile image
Ryan Smith • Edited

The original HTML layout syntax
Home       About       Contact 😅

Collapse
 
dexygen profile image
George Jempty • Edited

You forgot ·

Collapse
 
ferricoxide profile image
Thomas H Jones II

Always more a fan of •.

Collapse
 
mgrsskls profile image
Michael Großklaus

That's what I used to do as well when starting with web development... I was typing every single character by hand though, because I didn't know shortcuts, not even copy&paste.

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y

Non-breaking doesn't necessarily mean non-collapsing. Though most renderers will not collapse those, I do believe it'd be okay by unicode.

Collapse
 
codemouse92 profile image
Jason C. McDonald

Meanwhile, & is for ampersand, a.k.a. &

Collapse
 
devhead profile image
dev-head

Furthermore, a.k.a; is for "Also Known As"... i.e. another name.

Collapse
 
starbist profile image
Silvestar Bistrović • Edited

A bit furthermore, i.e. stands for id est and means roughly "that is".

Thread Thread
 
dexygen profile image
George Jempty

The way I remember the difference between i.e. and e.g. is that, people think i.e. means "in/for example" but actually that's e.g. -- i.e. is "specifically"

Thread Thread
 
ferricoxide profile image
Thomas H Jones II

Just never, never, never say "ect.". Makes me twitch every time I see it in print. Even worse when I see someone I know is an experienced UNIX/Linux user make that botch.

Thread Thread
 
kenbellows profile image
Ken Bellows

@GeorgeJempty I always thought of "i.e." as "in essence"

Collapse
 
brob profile image
Bryan Robinson • Edited

I love that it's non-breaking. It's a super power. I use it to attach a right angle quote to the end of a link's text to make sure it wraps with the last word:

<a>Some amount of text here&nbsp;&raquo;</a>

That will keep "here" and the arrows together. It'll keep you from getting a random 1 line of text and 1 line with just >>

Collapse
 
deciduously profile image
Ben Lovy

It's still "nubsip" in my head. Sometimes, "nubusp".

Collapse
 
isaacdlyman profile image
Isaac Lyman

My internal voice always says "noobspace." I don't know why.

Collapse
 
darksmile92 profile image
Robin Kretzschmar

Feeling kind of dump but my brain associated it with "no blank space" during my training time back then even though I knew it produced a blank space and ever since was wired to that term.
Should get used to the real meaning 😂

Collapse
 
0xdonut profile image
Mr F.

nbsp; = never boil smelly potatoes;

Collapse
 
ben profile image
Ben Halpern

You can't tell me what to do

Collapse
 
0xdonut profile image
Mr F. • Edited
<marquee><font size="3" color="red"><big>nbsp;nbsp; stop me! nbsp;nbsp;</big></font></marquee>
Thread Thread
 
ben profile image
Ben Halpern

😂

Collapse
 
philnash profile image
Phil Nash

So many of these things we rarely question!

Sharing the knowledge is &gt; keeping it to yourself.

Collapse
 
lukegarrigan profile image
Luke Garrigan

I knew this 💪 #10xdev

Collapse
 
ferricoxide profile image
Thomas H Jones II

Been a user of &nbsp; for a loooong time. A number of entities and ALT-key glyphs. Has confused many a co-worker, over the years, that I so frequently type characters from my number key pad (and that I've got so many memorized).

Collapse
 
leob profile image
leob

Yep, and there's also &sp; which is a "breaking space".

Collapse
 
jackharner profile image
Jack Harner 🚀

And here I was the opposite. Remembering "Non Breaking Space" was how I always remembered that the code was &nbsp;

Collapse
 
blindfish3 profile image
Ben Calder

&zwj;

Collapse
 
khrome83 profile image
Zane Milakovic

Such a honest tweet!

It’s crazy how many things in different languages we use, that have strange starts.

Btw what the hell is a tuple...

Collapse
 
craigmc08 profile image
Craig McIlwrath

Double, triple, quadruple, quintuple, sextuple, septuple, and so on. It's the generalization of a grouping of things, an n-tuple is group of n things. Although, I always read tuple as too-pull, not tupp-ell as it's pronounced in quintuple.

Collapse
 
ferricoxide profile image
Thomas H Jones II

Always makes me think of:

youtube.com/watch?reload=9&v=-mq7U...

Collapse
 
sebbdk profile image
Sebastian Vargr • Edited

I've used this for hacks in my early career more than i'd care to admit....

Collapse
 
missamarakay profile image
Amara Graham

URL - Uniform Resource Locator
URI - Uniform Resource Identifier

I mean it makes sense. But it doesn't make sense that I only learned this.... yesterday lol

Collapse
 
giorgosk profile image
Giorgos Kontopoulos 👀

@ben I had a feeling that everyone knowing a little html would know this thing but I perhaps I had overused it back when it was used for padding/margin !!!