
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   if you want to have more spaces keep adding   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! 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!
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,
- remove div vertical scroll
- Create HTML button that looks like a href hyperlink
- Comprehensive 256 Ascii code table with Html Hex IBM Microsoft Key
- HTML5 HELLO WORLD Example
- Get HTML table td, tr or th inner content value with id or name attribute
- Adding Sub Headings to Bootstrap Header tags
- What is the doctype for HTML5?
- Chessboard with pieces using pure HTML and CSS
- Hyperlink in html (anchor tag) without a underline
- W3 : character data is not allowed here html validation error
- Fibonacci series from 1 to 500 table
- 9 Border to DIV Element in HTML Examples
- How to add multiple spaces between html page text
- How to turn off autocomplete in input fields in HTML Form
- Default speed of Marquee tag : SCROLLAMOUNT
- How to word wrap in HTML
- Force convert HTML text input to upper case
- HTML5 CSS3 Color Codes List
- How to remove old 404 pages ulrs from Google crawler
- reCaptcha Verification expired. Check the checkbox again
- All directional arrows codes for HTML
- Align html element at the center of page vertically and horizontally
- How to make a div tag clickable
- Remove Html head and body tags from ckeditor source
- Auto Refresh Webpage after every x Second or Minute using Meta Tag?
More Posts:
- How to stop MongoDB Server running on Ubuntu - Ubuntu
- How to set background color in HTML page? - Html
- eclipse maven m2e : Cannot complete the install - Eclipse
- What does apt-get update command does? - Linux
- Android RatingBar Example - Android
- Force convert HTML text input to upper case - Html
- Android Constant and Resource Type Mismatches Lint - Android
- How to set an emoji as Zsh terminal prompt in macOS - MacOS