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 semicolons, 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 will be displayed as is.
Example: This text is wrapped in a <pre> tag!
More Posts related to Html,
- How to remove old 404 pages ulrs from Google crawler
- W3 HTML validator warning Unable to Determine Parse Mode
- Comprehensive 256 Ascii code table with Html Hex IBM Microsoft Key
- Align html element at the center of page vertically and horizontally
- HTML Images - Attributes and Formats
- 9 Border to DIV Element in HTML Examples
- Create HTML button that looks like a href hyperlink
- What is the doctype for HTML5?
- Simple Crossword Puzzle example using Pure HTML, CSS and JavaScript
- How to make a div tag clickable
- The author stylesheet specified in tag script is too long - document contains 21759 bytes whereas the limit is 10000 bytes
- W3 : character data is not allowed here html validation error
- How to set background color in HTML page?
- Auto Refresh Webpage after every x Second or Minute using Meta Tag?
- Default speed of Marquee tag : SCROLLAMOUNT
- Get HTML table td, tr or th inner content value with id or name attribute
- How to add multiple spaces between html page text
- Chessboard with pieces using pure HTML and CSS
- How to turn off autocomplete in input fields in HTML Form
- remove div vertical scroll
- Fibonacci series from 1 to 500 table
- Remove Html head and body tags from ckeditor source
- reCaptcha Verification expired. Check the checkbox again
- HTML5 CSS3 Color Codes List
- All directional arrows codes for HTML
More Posts:
- How to install Roblox Game on Mac [Intel/M1/M2] - MacOS
- [Fix] zsh: command not found: nvm - MacOS
- GitHub: How to Search Code - Git
- Compare two text files in Notepad++ - NotepadPlusPlus
- How to extract Java Jar/War/Ear files in Linux - Java
- Convert String to LocalDate in Java - Java
- 7 Python Arithmetic Operators with Examples [Tutorial] - Python
- Fix - Project JDK is misconfigured in IntelliJ - Java