How to get more space between words in html. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How to get more space between words in html.

such as <h1>word. word</h1>

26th May 2018, 11:05 AM
keev23i
keev23i - avatar
2 Answers
+ 7
use the entity character &nbsp; like this: <h1>word. &nbsp; &nbsp; word</h1> https://code.sololearn.com/WYVGt6vAqwdz/?ref=app Edit: And yeah, I totally forgot about CSS word spacing. Jan Markus is correct. CSS is the optimal approach. But in cases where you just want it between two words, &nbsp is better.
26th May 2018, 11:07 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 2
the good practice is to use the word-spacing property. https://www.sololearn.com/learn/CSS/1097/
26th May 2018, 11:29 AM
Mohamed Elhachemi
Mohamed Elhachemi - avatar