text space html code example
Example 1: leading spaces html
<!-- Add leading white space in front of text -->
Hello World
<!-- Output: ' Hello World' -->
Example 2: letter spacing css
div{
letter-spacing: 2px;
}
Example 3: how to create space inbetween text css
<div style="letter-spacing: 1em;">It's a wide wide word!</div>
<div style="line-height: 1.5;">
<div style="text-indent: 50px;">