
You must have noticed that when you type text in a div element or a paragraph or be it a span even if you add more than one space between the text it is rendered as just one! If you want to add more spaces between text in html page you need to make use of &nbsp if you want to have more spaces keep adding &nbsp followed by semicons, example,      
Let's see some examples:
<div>Hey there! I have added multiple spaces in my text yet I see only one space between them!</div>
Output:
Hey there! I have added multiple spaces in my text yet I see only one space between them!
<div>Hey there! &nbsp;&nbsp;&nbsp;&nbsp; I have added multiple spaces in my text yet &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I see only one space between them!</div>
Output:
Hey there! I have added multiple spaces in my text yet I see only one space between them!
Note: If you use pre tag, all text will be rendered as it is and the many spaces you add between the text they will be displayed as is.
Example: This text is wrapped in a <pre> tag!
More Posts related to Html,
- Remove Html head and body tags from ckeditor source
- Default speed of Marquee tag : SCROLLAMOUNT
- Align html element at the center of page vertically and horizontally
- HTML, HTML5. CSS, CSS3 Color Codes 2020
- How to add multiple spaces between html page text
- Force convert HTML text input to upper case
- Obsolete marquee element alternatives html5
- How to set background color in HTML page?
- Base 64 Index, Character and Binary Table
- Hyperlink in html (anchor tag) without a underline
- How to remove old 404 pages ulrs from Google crawler
- W3 HTML validator warning Unable to Determine Parse Mode
- Get HTML table td, tr or th inner content value with id or name attribute
- How to word wrap in HTML
- reCaptcha Verification expired. Check the checkbox again
- Adding Sub Headings to Bootstrap Header tags
- Chessboard with pieces using pure HTML and CSS
- How to turn off autocomplete in input fields in HTML Form
- All directional arrows codes for HTML
- Fibonacci series from 1 to 500 table
- W3 : character data is not allowed here html validation error
- How to make a div tag clickable
- Comprehensive 256 Ascii code table with Html Hex IBM Microsoft Key
- HTML5 HELLO WORLD Example
- Create HTML button that looks like a href hyperlink
More Posts:
- Share Multiple Images in WhatsApp using Android Intent - WhatsApp
- 🎃 Trending, Popular Halloween hashtags for year 2020 🎃 [Facebook, Twitter, Instagram, Snapchat] - Hashtags
- Chrome : When Adobe flash player has finished updating, reload this page to active it - Chrome
- How to recover SharePoint FARM if the SQL Server IP changes - SharePoint
- SharePoint Excel error - The workbook cannot be opened because it contains the following features that are not supported by Excel in the browser - SharePoint
- error CAML Query containing special characters - SharePoint
- 4 Open Source SQLite Editor for Mac OS X , Windows and Linux - Mac-OS-X
- Android Emulator Screenshot saved location - Android-Studio