0

votes

204 views

What is nbsp?

What is nbsp?

asked 2 years ago

Chialin

279 points



3 answers



0

votes

nbsp stand for no break space. used in html with " " and browser will parse it as white space

added 2 years ago

exil0r

45 points

0

votes

Also known as a fixed space or hard space, NBSP is short for Non-Breaking SPace and is used in programming, HTML, and word processing to create a space in a line that cannot be broken by word wrap on in the case of HTML create multiple spaces.

added 1 year ago

cher34

25 points

0

votes

What does the   character mean?

The   character is called a no-break space and it's a character entity. There are two situations where you may need to use a no-break space:

 

1. Keep elements together

If you want to put space between two elements, but the browser should not break up these two parts in separate lines then replace the ordinary space with a no-break space.

For example, you want to write this These are the results :
You would want to keep the ":" attached to the line and not let the browser render it on a separate line when there's no free space on the line. Without a no-break space it could show up like this:

These are the results
:

Replace the space before the semicolon with   and the ":" will stick to the preceding word, so it will always look like this :

These are the results :

 

2. Create multiple spaces

The other use of this character is where you want to show multiple spaces in a text. Because normal spaces are collapsed to only one by the browser, no-break spaces are needed here:

Source
These      spaces      will collapse,
but these &   are &   shown.
 
Result
These spaces will collapse, but these    are    shown.
 

And this character can be used to create space between other elements then text, like images.

added 1 month ago

xeniamonica

10 points



Know the answer? Share it :-)



You need to be signed in to comment and answer questions.

Members can sign in here.

If you are new to Askables, please register for free.





Questions and Answers

You are viewing a question asked by one of our members.

You too can ask questions and get advice from experts, authors and bloggers.


Related Articles

4

votes

Should You Build Your Own Home?

posted 2 years ago by Jamie

3

votes

Creating Small Gardens

posted 2 years ago by anuj291

3

votes

Delete

posted 2 years ago by Naomi

3

votes

Delete

posted 2 years ago by Naomi

3

votes

3

votes

Environment Friendly Furniture

posted 2 years ago by anuj291

3

votes

Environment Friendly House

posted 2 years ago by anuj291

2

votes

2

votes

How about "Hatred"?

posted 2 years ago by RekatksiR

2

votes

House cleaning

posted 2 years ago by anuj291

2

votes

Smarten up when gassing up

posted 3 years ago by Ken.Flegel

1

vote

Solar power on the go

posted 3 years ago by Bryan.Wong

Loading graphic

Saving please wait.

Feedback and Support


Type of feedback


Message


Your feedback has been subitted.

An Askables Team member will get back to you soon.

Thanks for your feedback.

You must verify your email address to do that.

Verification helps protect us and our community from the Internet bad guys.

Please verify your email address to continue.

Learn more about how to verify your email adress.