<tutorialjinni.com/>

HTML Non-breaking Space Code

HTML Code &#160;  
CSS3 Code \00A0
HTML Entity &nbsp;
Hex Code &#xa0;
UNICODE U+000A0
URL %26%23160%3B

Usage Examples


To use Non-breaking Space in Cascading Style Sheets or CSS file use the following code.
// css3 example usage
<style>
    span {
      content: "\00A0";
    }
</style>
To use Non-breaking Space in in-line HTML code you can use it "as it is" but, it is recommend that Non-breaking Space should be used like the following example code. Because it help in assigning special CSS to it.
    <!-- html usage -->
    <i>&#160;</i>
In order to send Non-breaking Space via a HTML form or via a query string it should be properly encoded. Following is the URL encoded format of Non-breaking Space. Do not forget to Decode it on the server side.
    http://www.tutorialjinni.com/html-symbols-entity-codes.html?html-non-breaking-space-code=%26%23160%3B
© Tutorial Jinni