
The numbers of lemurs areĭwindling due to poaching and other destructive human activities. Nonbreaking spaces can be inserted into HTML documents either with an escape code ( ) or by typing a nonbreaking space character (using whatever key. Lemurs are primates just like apes and monkeys, but theyĮvolved independently and are unique. Lemurs are primates found exclusively in the isolated island of

Without the character entity, this is how your code would look: It makes it possible to display multiple blank spaces. Since the browser will display only one blank space even if you put millions in your code, HTML has the character entity. How to Add Non-breaking Spaces in HTML with Then you can safely display them in the browser.
If you want to use them as "greater than" and "less than", you need to use their respective character entities ( < and >).If you want to use them in your code, HTML might mistake them for opening and closing tags. First, What Are Character Entities?Ĭharacter entities are reserved for displaying various characters in the browser.įor instance, the less than symbol ( ) are reserved for tags in HTML.

So, in this article, I will show you how to create any number of blank spaces you want in your code, and how to add a non-breaking space with the character entity. If you want 10 blank spaces in your HTML code and you try to add them with the spacebar, you'll only see one space in the browser.Īlso, one or more of the words that are supposed to be together might break into a new line. In some formats, including HTML, it also prevents consecutive whitespace characters from collapsing into a single space. In HTML, you can't create an extra blank space after the space ( ) character with the spacebar. In word processing and digital typesetting, a non-breaking space - also called NBSP, required space, hard space, or fixed space - is a space character that prevents an automatic line break at its position.
