Alex Rivera | Logout

How to leave space in HTML

Asked 2012-08-27T15:05:31.523
21

I do know that HTML is insensitive to space. But what can I use to make empty spaces between words, or phrases. I have tried <p></p> such kind of tags, but the HTML automatically omit it.

Can somebody give me example codes?

Edit
Report

1 Answer

33

You can use &nbsp;, aka a Non-Breaking Space.

It is essentially a standard space, the primary difference being that a browser should not break (or wrap) a line of text at the point that this &nbsp; occupies.

answered 2012-08-27T15:11:34.553

Your Answer