What is a  Non-Breaking Space ( )?

The HTML code   is used to add a non-breaking space to a line.  It is a variant of the regular space character, but provides additional formatting services with websites and web pages.

Many website content management systems (CMSs) and HTML editors collapse multiple space characters into one space. Similarly, multiple blank paragraphs are sometimes also collapsed into one paragraph. By using non-breaking spaces — instead of just hitting the space bar — you can prevent such collapses.

To website visitors, a non-breaking space looks just like a regular space produced by the space bar. The difference between the two types of spaces becomes apparent when you examine the source code, where the non-breaking space is shown as a code. In HTML, the non-breaking space is represented by the code  

  • Ampersand. As with many HTML codes for special symbols and characters, the non-breaking code begins with an ampersand — &
  • NBSP. The core element of this code is the abbreviation for non-breaking space — nbsp
  • Semicolon. As with many HTML codes for special symbols and characters, the non-breaking code finishes with a semicolon —

 

The Web1Media Digital Marketing Encyclopedia is a free resource for web marketing professionals, website owners and webpreneurs. We welcome your comments, corrections and recommendations.

The content contained on this website may not be scraped, reproduced or copied for commercial purposes without the expressed written consent of the author and website publisher.